Skip to Content
Menu
This question has been flagged
1 Reply
3088 Views

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
Avatar
Discard

Where you want to use this anchor text?

Author

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?

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"

Avatar
Discard
Related Posts Replies Views Activity
3
Mar 22
2468
0
Feb 22
1441
0
Nov 21
811
2
Sep 20
3457
1
Nov 21
3670