Show field with current item alias as url suffix

More
7 years 9 months ago #71480 by tobajarrat
Hi @ all,

i want to show a checkbox field in backend which will display a static url with current item alias or title suffix in frontend when ckicked.

I tried checkbox but when i add php code, it will be stripped or not executed. (suffix is php code)

Hopefully somebody can lead me to the correct approach.

Thanks in advance


Joomla and flexicontent is up to date!

Im using latest joomla and latest Flexicontent

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

More
7 years 9 months ago #71487 by ggppdk
Hello

you can create a "text" field
- duplicate the default (viewing) layout and then edit its PHP
- select the new layout file inside field's configuration and the save the configuration

inside your custom layout file you can use
Code:
echo $item->title; echo $item->alias;

etc


-- 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...
The following user(s) said Thank You: tobajarrat

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

More
7 years 9 months ago #71553 by tobajarrat
thanks a lot. I knew i could count on you!

Im using latest joomla and latest Flexicontent

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.898 seconds
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
Save