I got a couple of requests for this, so I figured I'd just post it.
It's kind of a hack, but if all you need to do is display the Page ID
to your SmartEdit contributors without using a RedDot info element,
JavaScript can do the trick. I happen to be using the jQuery library
in "no conflict" mode, but I'm sure you can adapt this to whatever
suits your needs.
var pageid = jQuery.trim( jQuery("head").html().split("-- PageID")
[1].split("-")[0] );
I'm sure you could do this with a regex, but I'm lousy at them. Once
you have the page id in a variable you can display it however you
want.
Btw, the "trim" method is custom. Just Google "JavaScript trim" and
you'll find about 8 ways to do it.
Good luck!
On Nov 9, 2:56 pm, rwagner <
wagner....@gmail.com> wrote:
> Unfortunately you can'tgetinfo elements with render tags -- or at
> least I've never seen it -- otherwise that would definitely serve my
> needs. I've got a hack right now where I basically parse the HTML andgetthePageIDfrom the comment that RedDot puts on everypage. It
> works, but I would still like a more durable solution.
>
> On Nov 6, 5:37 am, Stefan Buchali <
stefan.buch...@gmail.com> wrote:
>
>
>
> > As far as I know, it's impossible togetthepageIDvia render
> > tags. :-(
> > only the guid (which is calledidin render tag syntax, just to
> > complete the confusion)