Hi!
I'm having a bit of trouble I hope someone can please help with!
I've installed mossnippet and I've created links at the bottom of articles that appear in a category blog view (so lots of articles on one page, each with an individual set of links at the bottom)... I need a way to get the current article id with php so that I can create an 'email article' link in my own format.
Any help would be great appreciated!
Thanks!
get article id with php for display in category blog view
Moderators: tjay, seadap, Rogue4ngel, matthewhayashida
-
- Joomla! Apprentice
- Posts: 8
- Joined: Sat Oct 13, 2007 1:38 pm
-
- Joomla! Apprentice
- Posts: 8
- Joined: Sat Oct 13, 2007 1:38 pm
Re: get article id with php for display in category blog view
As a quick update I tried the following code:
but got back the same number for every single article in the blog view... does anyone know how ot fix this? help would be greatly appreciated!
Code: Select all
<?php
$id = intval( mosGetParam( $_REQUEST, 'Itemid', 0 ) );
echo $id;
?>