Website Builder

0

Can't save a <href> in the odoo HTML/CSS editor

Avatar
Carlton Shaw

Hi,


I am creating a website with categories which have links to particular filtered searches in the webshop. <href> links usually save fine, but when I try to include the attributes in the link, it does not allow me to save the edited code. Please note this part of the website is custom built in HTML/CSS so using the default website editor is not an option - it does not format correctly.


I am trying to change the code from:

                <a style="margin-bottom: 15px;" href="/fischer/resins-mortar" class="bg-epsilon col-lg-12 pt16 pb16" data-original-title="" title="" aria-describedby="tooltip374835">

                  <div data-name="Box">

                    <img class="fa fa-2x s_features_grid_icon" style="max-width: 75px; max-height: 75px;" src="/web/image/product.template/5382/image?unique=11d27e7" data-original-title="" title="" aria-describedby="tooltip401113"/>

                    <div class="s_features_grid_content">

                      <h4>Accessories</h4>

                      <p data-original-title="" title="" aria-describedby="tooltip571265">Site tools | Drill bits - HSS / SDS / Drivers</p>

                    </div>

                  </div>

                </a>


to


                <a style="margin-bottom: 15px;" href="/shop/category/anchors-resins-mortars-84?category=84&search=&attrib=&attrib=&attrib=156-1618" class="bg-epsilon col-lg-12 pt16 pb16" data-original-title="" title="" aria-describedby="tooltip374835">

                  <div data-name="Box">

                    <img class="fa fa-2x s_features_grid_icon" style="max-width: 75px; max-height: 75px;" src="/web/image/product.template/5382/image?unique=11d27e7" data-original-title="" title="" aria-describedby="tooltip401113"/>

                    <div class="s_features_grid_content">

                      <h4>Accessories</h4>

                      <p data-original-title="" title="" aria-describedby="tooltip571265">Site tools | Drill bits - HSS / SDS / Drivers</p>

                    </div>

                  </div>

                </a>



Any help would be welcome.


You can see the website at https://paradigme.co.uk
2 注释
头像
丢弃
Avatar
Mia amelia
-

Where you want to use this anchor text?

Avatar
Carlton Shaw
-

I want to use this in our web categories sections as a link on the buttons - see https://paradigme.co.uk/self-tapping-screws - these categories eventually get down to individual web categories, however, I want to use attributes as filters from a hyperlink, however, odoo doesn't seem to let me save the links with attributes in as shown above - do they contain unsupported characters or something?

1 答案
0
Avatar
Odoology
Best Answer

you can use &amp; instead of & in the link. Try this "/shop/category/anchors-resins-mortars-84?category=84&amp;search=&amp;attrib=&amp;attrib=&amp;attrib=156-1618"

头像
丢弃