Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Doogie Talons 183 posts 318 karma points
    Feb 12, 2011 @ 11:51
    Doogie Talons
    0

    Can you call the properties of a datatype into xslt.

    If I have a data type of a checkbox list Can I call it into a navigation li loop ? if so.. how :)

    Doogie.

  • Doogie Talons 183 posts 318 karma points
    Feb 12, 2011 @ 11:55
    Doogie Talons
    0

    Oh I don't mean call it from a page, I mean use the data type to form a list which will filter the pages with the checkbox checked on a certain box.

     

  • Kim Andersen 1447 posts 2196 karma points MVP
    Feb 12, 2011 @ 15:44
    Kim Andersen
    1

    Hi Doogie

    I'm not quite sure I totally understand your question, but do you want to print out the selected options from a checkbox list on the frontend?

    You can for sure do this. Actually could you try to print out this at first where aliasOfTheField is the alias of the property that you inserted on your document type:

    <xsl:value-of select="$currentPage/aliasOfTheField" />

    This should print out the selected options from the checkbox list in the bacoffice. Does this return anything to you?

    /Kim A

  • Doogie Talons 183 posts 318 karma points
    Feb 13, 2011 @ 15:44
    Doogie Talons
    0

    Oh thanks, what I meant was actually make a nav from the contents of a datatype without it needing to be called into a page first.

     

    So if I set up a checkbox menu datatype can I make a list like red,green, yellow ect from it before calling it in a page.

    I have a solution though. I have called it in a tab on the home page. Then the xslt asks for it there, this also allows me to switch off certain colours without amending the datatype.

    Cheers all.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 13, 2011 @ 15:53
    Jan Skovgaard
    0

    Hi Doogie

    Do you have different named document types for their purpose or is the document type the same? If the names are different you should not need to make a custom datatype, to decide wether or not a certain page belongs to a certain navigation structure on the site.

    However if it's the same document type what you describe above is a good solution. Then you can make a test in your match to make sure that only document types, which has been marked "red" only gets displayed on a certain page/some certain pages. However this requires that you have some different templates that can be used on your document type dependant on where you want to display the "red" items only.

    does this make sense to you?

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft