Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3792 Lượt xem

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
Ảnh đại diện
Huỷ bỏ

Where you want to use this anchor text?

Tác giả

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?

Câu trả lời hay nhất

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"

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 3 22
3195
0
thg 2 22
2146
0
thg 11 21
1433
2
thg 9 20
4164
1
thg 11 21
4538