Include before and after php in module

More
11 years 10 months ago #33114 by igcorreia
Simple but efective, I would like to have new fields in the module:

Include php before module;
Include php after module;
Include php for each standard item;
Include php for each featured item;

The vlue would be some php file in the module temapltes.

Usually to customize the modules we duplicate the templates, etc. I would like to improve the news temaplte without changing it and also respecting flexicontent updates. The simples way to do this, I think. is to add in the module the possiblite to include other php files. I suggest does positions.

for example, if I want run a php script before the module:
I add a folder in the tmpl of the module called:
/customscripts/runbefore.php
In the module I would add to the fields:
Include php before module = "runbefore";

This way I can keep upgrading my flexicontent sites without problems. Does postions are usually what we use. I think this is simple but we wanted in the core :D

Thanks

Please Log in or Create an account to join the conversation.

More
11 years 10 months ago #33119 by ggppdk
This was added to the CORE fields helper class:

Ability to have a parameter with Custom HTML with replacements, including:
- field replacements (of current item of the item list)
- language string replacements
- current item's property replacements

this already used to enhance:
- field related items
- field related items backlinks

and it can be integrated with a little work to:
-- universal module as an alternative to field list
-- search view item listing (still thinking if this view should have an search view layout in templates management)

-- What you suggest make sense, but thinking maybe instead of executing a custom PHP file, to use instead this new replacement parameter in more than one places


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
11 years 10 months ago #33131 by igcorreia
For example I have a custom php file called:
"something.php" and I want to call it when the module is loaded how can I do this wihtout changing the news.php file?

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.520 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline