All times are UTC + 1 hour




Post new topic Reply to topic  [ 7 posts ] 
  Print view

Different recordlists design
Author Message
PostPosted: Mon Sep 19, 2005 3:04 pm 
Regular
Offline

Joined: Mon Sep 19, 2005 2:07 pm
Posts: 38
I think it could be nice to have different CSS className for standard record lists and for "included" recordlists (when recordlists come from a relation between nodes).

Is it possible ?


Top
 Profile  
 

PostPosted: Mon Sep 19, 2005 4:56 pm 
Site Admin
User avatar
Offline

Joined: Sun May 22, 2005 1:28 pm
Posts: 4214
Location: Utrecht, The Netherlands
That would be possible, but I think it would be nicer to wrap the recordlist inside a div generated by the relation, so that you could use a cascading stylesheet to apply stuff only to one of the lists. This would make it easier to keep the recordlists the same by default.


Top
 Profile  
 

PostPosted: Tue Sep 20, 2005 8:01 am 
Regular
Offline

Joined: Mon Sep 19, 2005 2:07 pm
Posts: 38
ivo wrote:
inside a div generated by the relation


Thanks ivo !
But I don't know what you mean by "generated by the relation", how can I do that ?


Top
 Profile  
 

PostPosted: Tue Sep 20, 2005 8:10 am 
Site Admin
User avatar
Offline

Joined: Sun May 22, 2005 1:28 pm
Posts: 4214
Location: Utrecht, The Netherlands
Well,

in atk/relations/class.atkonetomanyrelation.inc, there's an edit() method that takes care of putting the relation on screen. In this method, you could surround the recordlist with a '<div id="relation">...</div>' construct.


Top
 Profile  
 

PostPosted: Tue Sep 20, 2005 9:14 am 
Regular
Offline

Joined: Mon Sep 19, 2005 2:07 pm
Posts: 38
OK, thanks for the tip !

And what about the classes "class.atkcustomrecordlist.inc" and "class.atkprintablerecordlist.inc" ?
Is it possible to use them and how ?


Top
 Profile  
 

PostPosted: Tue Sep 20, 2005 12:12 pm 
Site Admin
User avatar
Offline

Joined: Sun May 22, 2005 1:28 pm
Posts: 4214
Location: Utrecht, The Netherlands
Yes. The atkcustomrecordlist is mainly used to export records to a completely custom recordlist format, where you can specify delimiters, enclosure char etc. For example for generating a CSV file.

The atkPrintableRecordlist is mainly a stripped down version of atkRecordList, that leaves out any links and has a more basic layout so it is easier to print.

You can use the api docs for how to use these classes.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group