Announcement

Collapse
No announcement yet.

vb:raw tags, where do I find it?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [CMS] vb:raw tags, where do I find it?

    I need to add a style class to this code {vb:raw tags}, where can I find it?

  • #2
    You misunderstand the purpose of this code. tags is a variable and vb:raw simply means don't process it to remove HTML. There is no way to assign a style to it directly. You would have to either put div, span tags around it and assign a class that way or look at the generated code by looking on the output of the page to see which elements you can assign CSS to.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud customization and demonstration site.
    vBulletin 5 Documentation - Updated every Friday. Report issues here.
    vBulletin 5 API - Full / Mobile
    I am not currently available for vB Messenger Chats.

    Comment


    • #3
      I have already assigned a class in template above raw tags variable, but the effect that I've obtained is not acceptable. I need the same effect of category that doesn't generates code directly

      Code:
      <div>
      
              <vb:if condition="!empty($categories)">
                      <ol class="commalist">
                          <!--<li>{vb:phrase in_category}</li>-->
                          <vb:each from="categories" key="categoryid" value="category">
                              <li><a class="btn" href="{vb:raw category.category_url}"><span>{vb:raw category.category}</span></a></li>
                          </vb:each>
                      </ol>
              </vb:if>
          <vb:if condition="$showtags AND $tag_count">
              <ol class="commalist">
                          <!--<li>{vb:rawphrase tags}:</li>-->
                          
                              <li class="btn"><span>{vb:raw tags}</span></li>
                          
                      </ol>
          </vb:if>
          </div>
      output html tag code ( wrong ):

      HTML Code:
      <ol class="commalist">                    
      <!--<li>Tag:</li>-->                                            
      <li class="btn"><span>    <ul class="commalist">                    
      <li><a href="http://www.****">tag</a>, </li>                    
      <li><a href="http://www.*****">tag1</a>, </li>                    
      <li><a href="http://www.*****">tag2</a>, </li>                    
      <li><a href="http://www.*****">tag3</a>, </li>                    
      <li><a href="http://www.*****">tag14</a></li>            
      </ul>
      <img src="11x11progress.gif" id="tag_form_progress" class="inlineimg hidden" alt=""></span>
      </li>                                    
      </ol>
      output html category code ( correct ):

      HTML Code:
      <ol class="commalist">                    
      <!--<li>Categorie:</li>-->                                            
      <li><a class="btn" href="http://****"><span>category1</span></a></li>                          <li><a class="btn" href="http://****"><span>category2</span></a></li>
       <li><a class="btn" href="http://****"><span>category3</span></a></li>                                    
      </ol>
      rendering:

      Comment


      • #4
        Why do you think your example code is correct and the output is wrong?

        Comment


        • #5
          should be:

          HTML Code:
          <ol class="commalist">                     
          <!--<li>Tag:</li>-->                                                                 
          <li class="btn"><a href="http://www.****"><span>tag</span></a>, </li>                     
          <li class="btn"><a href="http://www.*****"><span>tag1</span></a>, </li>                     
          <li class="btn"><a href="http://www.*****"><span>tag2</span></a>, </li>                     
          <li class="btn"><a href="http://www.*****"><span>tag3</span></a>, </li>                     
          <li class="btn"><a href="http://www.*****"><span>tag14</span></a></li>             
          <img src="11x11progress.gif" id="tag_form_progress" class="inlineimg hidden" alt="">                                     </ol>

          Comment


          • #6
            Based on what though?

            Comment


            • #7
              please see that page: http://www.rally.it/matteo-gamba-vin...carnevale-5794

              category displayed correctly

              Click image for larger version

Name:	foto539.jpg
Views:	1
Size:	17.8 KB
ID:	3686777

              but tags not because style class is not applied on single tag

              Click image for larger version

Name:	foto540.jpg
Views:	1
Size:	21.2 KB
ID:	3686778

              Comment


              • #8
                You would need to change the scope of your CSS. Assign it to something like '.commalist ul li' or add in another class to the span like .tags so it would be '.commalist .tags ul li'. Then it would only apply to that section. However the system is working as it was designed, just not how you want it to work.

                Otherwise it appears to make the changes you're looking for requires PHP code changes to the output of those tags. This isn't in the scope of the default style. If you need help with this, you should visit www.vbulletin.org.
                Translations provided by Google.

                Wayne Luke
                The Rabid Badger - a vBulletin Cloud customization and demonstration site.
                vBulletin 5 Documentation - Updated every Friday. Report issues here.
                vBulletin 5 API - Full / Mobile
                I am not currently available for vB Messenger Chats.

                Comment

                widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                Working...
                X