0

Using EE 2.5.5, I wish to output a segment_x (segment_2, which aligns with our department names) so that I may class by department; i.e.,

<article class="main {segment_2}">
    <more html goes here>

would become

<article class="main lead-pipes">
    <more html goes here>

However, I can not add {segment_2} to HTML portions of the template, nothing outputs.

How to do so?

3
  • 1
    It should be as simple as {segment_2} with nothing else you need to do. Have you checked what is being output in the browser dev tools? – Ian Apr 29 '13 at 20:31
  • You are correct Ian. There's several if/thens in the layout, I was updating the wrong block. Make it an answer I'll happily send you some points. – Screenack Apr 29 '13 at 23:02
  • Sure thing. I've added it as an answer below. :) – Ian Apr 30 '13 at 7:46
0

It should be as simple as {segment_2} with nothing else you need to do. Have you checked what is being output in the browser dev tools?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.