displaying the article ID number

More
12 years 2 months ago #35849 by rottenberg
Hello,

I want to display for the article ID number for administrator group.

No problem to limit the display to 'special' users but I dont succeed displaying the ID number.

I have created an hidden text field. The default value is displayed when the field is empty.
In the default value I have entered [c:2oh5tbmp]{item->id}[/c:2oh5tbmp].


On my public page I get '{item-id}' and not the value of the item-id.

How can I display this Id number.

Thank you for help

best regards

Michel

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

More
12 years 2 months ago #35859 by ggppdk
Default value is used exactly as it entered !!

1. Enter a default value:
 

2. Set the value to be loaded instead of empty in frontend views

3. Add the replacement in prefix parameter
BUT please READ description of it for available replacements, and their syntax


-- 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
12 years 2 months ago #35886 by rottenberg
Hello
I have found the {item->id} in the description of related item.
I don't see it in the prefix-suffix-separator definition.

Does it mean it's impossible to get it unless updating the source of the template ?

best regards

Michel

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

More
12 years 2 months ago #35888 by ggppdk
Which
FLEXIcontent version do you have?

About Relation field (old related itens)

You can place it inside the "item HTML" parameter used to display the related items


-- 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
12 years 2 months ago #35889 by rottenberg
hello
I'm using the v1659 (the last one).

My problem is not with the back related item : I use it to display an hyperlinked image.

I try to get the ID number of the current article in a text field.
I want to have the ID number in a detailed article or in the list of articles inside the category page.

This value is only displayed for administrators : they need it to create an hyperlink to the article from another site.

thank you for help
best regards
Michel

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

More
12 years 2 months ago #35892 by ggppdk
Hello,

i reread the description of the Header of
prefix/suffix/separator/etc parameters and this is not in the description , and it is not there, neither it was in the code. But i have added it for v2.0.2:

in which you will be able to use : {{item->id}}

Regards


-- 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.

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