Andy,
I have upgraded my test site to Linksql 3.2.0 and of course want the random paid link to work once more!
One major difference - I now only have one type of link.html template (as I can do the paid formatting using the "isPaidLink" tag) called by category.html
I have used the same globals as before and inserted the code into category.html, but am a little stuck.
I get correctly showing random paid links (but they ignore the "isPaidLink" tag for the fancy formatting), and then I get the paid links ordered alphabetically with fancy formatting. Not quite sure how to move forward, but it is very close already.
Here is the relevant bit from my category.html template;
<h3>Links</h3>
<%if paging.num_hits%><div class="paging"><%Links::Utils::paging()%></div><%endif%>
<%-- Start of Random Paid Links --%>
<%check_if_paid_exists($category_id)%>
<%if num_paid_found > 0%>
<%random_paid_in_category($category_id)%>
<%if random_link.length%>
<%loop random_link%>
<%include link.html%>
<%endloop%>
<%endif%>
<%endif%>
<%-- End of Random Paid Links --%>
<%loop links_loop~%>
<%include link.html%>
<%~endloop%>This is a sample category from the test site which shows the problem;
Sample Category from test site
Could you take a look? - It would be much appreciated,
Best wishes,
Piers
I have upgraded my test site to Linksql 3.2.0 and of course want the random paid link to work once more!
One major difference - I now only have one type of link.html template (as I can do the paid formatting using the "isPaidLink" tag) called by category.html
I have used the same globals as before and inserted the code into category.html, but am a little stuck.
I get correctly showing random paid links (but they ignore the "isPaidLink" tag for the fancy formatting), and then I get the paid links ordered alphabetically with fancy formatting. Not quite sure how to move forward, but it is very close already.
Here is the relevant bit from my category.html template;
Code:
<%if links_loop.length~%> <h3>Links</h3>
<%if paging.num_hits%><div class="paging"><%Links::Utils::paging()%></div><%endif%>
<%-- Start of Random Paid Links --%>
<%check_if_paid_exists($category_id)%>
<%if num_paid_found > 0%>
<%random_paid_in_category($category_id)%>
<%if random_link.length%>
<%loop random_link%>
<%include link.html%>
<%endloop%>
<%endif%>
<%endif%>
<%-- End of Random Paid Links --%>
<%loop links_loop~%>
<%include link.html%>
<%~endloop%>
Sample Category from test site
Could you take a look? - It would be much appreciated,
Best wishes,
Piers