Hi
I have been playing around with SSI and DBMan with the aim of getting the titles of last six items entered into the database to show up on a SSI page and while I've not got it working I have found this out:
If one has JPD's what's new mod one can create a SSI variable for the current date like this:
<!--#set var="DBMAN_DATE" value="${DATE_LOCAL}"-->
And then have the six newest records show up using this:
However it does not work for records added on the current day :-(
So I've now decided to work with the record ID's - displaying the six highest numbered like this:
Now to the point of this post... I want to pull the titles from DBMan into a SSI page but without the HTML headers and footers (but with some of the HTML) and do this with out breaking any other functionality of DBMan.
Could this be done by having a variable in the URI string which is used on the SSI page, say ssi=1, and the not printing some things in sub html_view_success if ssi=1?
I suspect this a daft way of doing it - has anyone else got any good ideas regarding how I could get this working?
Chris
I have been playing around with SSI and DBMan with the aim of getting the titles of last six items entered into the database to show up on a SSI page and while I've not got it working I have found this out:
If one has JPD's what's new mod one can create a SSI variable for the current date like this:
Code:
<!--#config timefmt="%d-%b-%Y"--> <!--#set var="DBMAN_DATE" value="${DATE_LOCAL}"-->
And then have the six newest records show up using this:
Code:
<!--#include virtual="/cgi-bin/db.cgi?db=default&uid=default&Date-lt=$DBMAN_DATE&view_records=1&mh=6" -->However it does not work for records added on the current day :-(
So I've now decided to work with the record ID's - displaying the six highest numbered like this:
Code:
<!--#include virtual="/cgi-bin/db.cgi?db=default&uid=default&keyword=*&mh=6&sb=1&so=ascend&view_records=View+Articles" -->Now to the point of this post... I want to pull the titles from DBMan into a SSI page but without the HTML headers and footers (but with some of the HTML) and do this with out breaking any other functionality of DBMan.
Could this be done by having a variable in the URI string which is used on the SSI page, say ssi=1, and the not printing some things in sub html_view_success if ssi=1?
I suspect this a daft way of doing it - has anyone else got any good ideas regarding how I could get this working?
Chris