Developer forum

Forum » Templates » paragraphID while inside a module tempalte

paragraphID while inside a module tempalte


Reply

is'nt it possible to get the paragraphID when you are inside a module tempalte.

 

what we need to do is get the current paragraphID when we are inside the module tempalte of filepublish.

 

thanks.


Replies

 
Reply

In some cases, but it's not a global tag. Usually it's implemented as <!--@PID--> og <!--@ParagraphID-->. Use <!--@DwTemplateTags--> to find out.

 
Reply
ralf@fonqi.dk wrote:

is'nt it possible to get the paragraphID when you are inside a module tempalte.

 

what we need to do is get the current paragraphID when we are inside the module tempalte of filepublish.

 

thanks.


 

You can access it on your paragraph template, then create a java variable there and grap it in the module template .. works for me .. if theres a smarter way .. let me know. Ditte/condurra

 
Reply

That's the only way I can think of also:)

 

In paragraph template

<script>

var PID = <!--@ParagraphID-->

</script>

 

In module template

<script>

alert(PID);

</script>

 

You must be logged in to post in the forum