Create a field with the URL of the article

More
8 years 4 months ago #70004 by Mick
Hi,

I'm using FC 3.2.1.5.

I would like to know if there is a way to create a new field, named for instance "url", that will contain automatically the URL of an article ?

Thank you!
Michaël

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

More
8 years 4 months ago #70008 by micker
hello an exmple of url ?

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
8 years 4 months ago - 8 years 4 months ago #70011 by Mick
Hello,

I would like the short URL like :

http://xxx/index.php/kb/23/496

Thanks,
Michael
Last edit: 8 years 4 months ago by Mick.

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

More
8 years 4 months ago #70018 by micker
you too explain more .. its the same url for all item ?
do you have a variable part for this url ?

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
8 years 4 months ago #70019 by Mick
Hi Micker,

On my website, I have (for instance) 10 items :

1. How to share informations
2. How to collect informations
3...
etc

For each item, I have a different URL, like :

1. http://xxx/mysite/kb/8-knowledge-base/1-how-to-share-informations
2. http://xxx/mysite/kb/8-knowledge-base/2-how-to-collect-informations

This is the URL found on my browser, when I click on the item.

On my item, I would like to add a field named"url", with a short url like :

1. http://xxx/mysite/kb/1
2. http://xxx/mysite/kb/2

The idea is to share a short link with another users, instead of the long link.

I would like to know if there is a way to add automatically this field to the item.

Thanks.
Michaël

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

More
8 years 4 months ago #70020 by micker
you can add a weblink field not ?
with title and link
or
a text field with http://xxx/mysite/kb/ in prefix and user can put number in field ...
i don't realy undesrtand your question ...

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
8 years 4 months ago - 8 years 4 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 review. Thanks!
Last edit: 8 years 4 months ago by ggppdk.

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

More
8 years 4 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
8 years 4 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 review. Thanks!

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

More
8 years 4 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
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