We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Getting an unique article id

Development and Programming

wiebeww's avatar
wiebeww
1 posts
14 years ago
wiebeww's avatar wiebeww

Hello,

I’m looking for a way to inert the article ID into a script.

I know how to do this in Joomla and Wordpress. (Joomla: <?php echo JRequest::getVar(‘id’); ?> ) (Wordpress: <?php the_ID(); ?> )

I’ve found something about entry_id but I haven’t a clue how to apply this.

Can anyone help me out?

Regards,

Wiebe

       
MaxStoun's avatar
MaxStoun
21 posts
14 years ago
MaxStoun's avatar MaxStoun

Maybe

{exp:channel:entries ...}
 {entry_id}
{/exp:channel:entries}
       
wiebeww's avatar
wiebeww
1 posts
14 years ago
wiebeww's avatar wiebeww

Thank you, I’ll try it.

Wherefor ar the … in the code?

Regards,

Wiebe

       
MaxStoun's avatar
MaxStoun
21 posts
14 years ago
MaxStoun's avatar MaxStoun

for example

{exp:channel:entries channel="your_channel_name"}
 {entry_id}
{/exp:channel:entries}
       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.