Shopsite Template Code - Support for Class and ID's

Request and discuss enhancements to ShopSite

Shopsite Template Code - Support for Class and ID's

Postby Kapitol » Thu May 29, 2014 8:32 am

Most tables get rendered in the DOM that start out in HTML like:
Code: Select all
[-- SC_Payment --]

and end up like:
Code: Select all
<table class="payment">
...
</table>


I would like to add my own classes and sometimes an ID to tables. Currently the only viable solution I have come up with is to add a class to the rendered table with some jQuery. The best solution is being able to add a class or an ID directly to the code. If Shopsite added support for this idea below; designers/developers could gain some control over elements that we are lacking right now.

Code: Select all
[-- SC_Payment .table .table-head #myPayment --]
Kapitol
 
Posts: 52
Joined: Mon May 14, 2012 10:26 pm

Re: Shopsite Template Code - Support for Class and ID's

Postby Kapitol » Thu Jun 05, 2014 3:07 pm

In case it wasn't clear on what the output would look like

Code: Select all
[-- SC_Payment .table .table-head #myPayment --]


Above would transform the table below to look like
Code: Select all
<table class="payment table table-head" id="myPayment" >
...
</table>
Kapitol
 
Posts: 52
Joined: Mon May 14, 2012 10:26 pm


Return to Enhancement Requests

Who is online

Users browsing this forum: No registered users and 13 guests