Developer forum

Forum » Templates » menu/output based on a paragraphheader

menu/output based on a paragraphheader


Reply

Hi,

I'm trying to make a paragraphheader to work as a parrent link and paragraphtext as it's children.

Is this even possible?

So if you imagine a paragraphsetup that list all paragraphheader and when clicked, the given paragraph-content related to the paragraphheader will be showned.

And when this is done I would like to controle it with xpath.


/Rasmus


Replies

 
Reply
Hi Rasmus

Since ParagraphHeader and ParagraphText are in the same XML, and on the same level, it sounds more like a JavaScript fix you need instead of an XSLT fix ?

// Dammark
 
Reply
I understand the xml problem. I sure was hoping. :/

What do you mean, javascript fix?

The thing is.
I wan't to make a smart FAQ function.

So that the customer/admin easily can create a new FAQ with the paragraphheader being the question and the paragraphcontent being the answer. 

I then thought xslt was the solution.

Do you have an alternative way to achieve this function?

 

You must be logged in to post in the forum