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