Create a field with the URL of the article

More
6 years 6 months ago - 6 years 6 months ago #70040 by ggppdk
Hello

For creating field values automatically
via custom PHP code that you enter in a parameter

we have added this feature recently
(currently possible such auto-creation is available only for title field in type configuration form)

- what is missing is adding same parameter in field configuration of "text" , "textarea" , etc fields

it is 1 or 2 hours work to complete this feature

One of the purpose of this new feature is to avoid creating a new field type to add just a small custom code inside the new field type


-- 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...
Last edit: 6 years 6 months ago by ggppdk.

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

More
6 years 6 months ago #70054 by Mick
Hi ggppdk,

Thank you for your answer.

Yep, what I need is to create the short link like http://xxx/mysite/kb/2.
In fact, I just need to retrieve automatically the article ID, like 1 or 2 in my case.
Then, I will be able to create my field "link", with something like that : http://xxx/mysite/kb/[ID OF THE ARTICLE], where the ID is filled automatically.

Is there a PHP code for this ?

Thanks!
Michaël

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

More
6 years 6 months ago #70057 by ggppdk
Hello

after this featured is added , we could give you such custom PHP code,
it should be something like:
Code:
$auto_url = 'http://nnn/kb/' . $item->id; return $auto_url;


-- 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
6 years 6 months ago #70058 by Mick
Hello,

Great, understood.

I will wait for a next release with this improvement!

Thanks,
Michaël

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.267 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