Moving the items pe...
 
Notifications
Clear all

Moving the items per row setting

10 Posts
3 Users
0 Reactions
1,959 Views
(@itanshi)
Posts: 381
Reputable Member
Topic starter
 

I'd like this moved out of the admin settings and into the variables file in a skin so that different themes can have different organizational methods. With this I can in one skin show one per row and in another skin say 3 per row. The 1 per row will have descriptions, this way I can have a simplified view (3 per) and a detailed view (1 per). thanks.


I am rebuilding efiction! Join us on irc! #efiction at www.mibbit.com Instructions for irc πŸ˜€ Alpha released!

 
Posted : 23/01/2008 8:43 pm
Jan_AQ
(@jan_aq)
Posts: 1300
Noble Member
 

You can do this already with categories. Edit the variables.php file for a particular skin.

Mine have the categories in columns of 3 so it says:

$blocks['categories']['status'] = 1;
$blocks['categories']['template'] = "{link} [{count}]";
$blocks['categories']['columns'] = 3;

Depending on what you want, you change the number of columns, and change the template.


Whoever said nothing is impossible never tried slamming a revolving door.

url: https://www.potionsandsnitches.org/fanfiction
php: 7.4.33 msql: 5.6.51-community GPL
efic version: 3.5.5 latest patches: yes
bridges: none mods: challenges, tracker, story end, beta, word

 
Posted : 23/01/2008 10:22 pm
(@tammy)
Posts: 2577
Member Moderator
 

You can already do this.


$itemsperpage = 5;

 
Posted : 31/01/2008 2:00 pm
(@itanshi)
Posts: 381
Reputable Member
Topic starter
 

You can do this already with categories. Edit the variables.php file for a particular skin.

Mine have the categories in columns of 3 so it says:

$blocks['categories']['status'] = 1;
$blocks['categories']['template'] = "{link} [{count}]";
$blocks['categories']['columns'] = 3;

Depending on what you want, you change the number of columns, and change the template.

Thanks, I tried this and nothing changed. I assume the default setting on the site has precedence and that is 3 atm. I changed that to 1 and it worked,but that applies to every skin which is not what I want. Thank you.

$blocks["categories"]["status"] = '1';
$blocks["categories"]["columns"] = 1;
$blocks["categories"]["template"] = "{link}";
$blocks["categories"]["tpl"] = '1';

I am rebuilding efiction! Join us on irc! #efiction at www.mibbit.com Instructions for irc πŸ˜€ Alpha released!

 
Posted : 02/03/2008 3:09 pm
Jan_AQ
(@jan_aq)
Posts: 1300
Noble Member
 

Did you try what Tammy suggested?

Add to the variables.php file for a particular skin:

$itemsperpage = 5;


Whoever said nothing is impossible never tried slamming a revolving door.

url: https://www.potionsandsnitches.org/fanfiction
php: 7.4.33 msql: 5.6.51-community GPL
efic version: 3.5.5 latest patches: yes
bridges: none mods: challenges, tracker, story end, beta, word

 
Posted : 04/03/2008 7:16 pm
(@itanshi)
Posts: 381
Reputable Member
Topic starter
 

That affected story entries within a category. I wish to have a single column of category links in one skin and 3 in another. Thanks.


I am rebuilding efiction! Join us on irc! #efiction at www.mibbit.com Instructions for irc πŸ˜€ Alpha released!

 
Posted : 09/03/2008 7:00 pm
(@tammy)
Posts: 2577
Member Moderator
 

$columns = 1;

 
Posted : 09/03/2008 8:06 pm
(@itanshi)
Posts: 381
Reputable Member
Topic starter
 
$blocks["categories"]["status"] = '1';
$blocks["categories"]["columns"] = '1';
$blocks["categories"]["tpl"] = '1';
$columns = 1;

Resulted in 3 columns. Hmm, tricky.

http://fanforge.net/browse.php?skin=default2&type=categories&id=1


I am rebuilding efiction! Join us on irc! #efiction at www.mibbit.com Instructions for irc πŸ˜€ Alpha released!

 
Posted : 10/03/2008 12:18 am
(@tammy)
Posts: 2577
Member Moderator
 

$displaycolumns = 1;


 
Posted : 10/03/2008 8:41 am
(@itanshi)
Posts: 381
Reputable Member
Topic starter
 

that worked, thanks  πŸ˜€


I am rebuilding efiction! Join us on irc! #efiction at www.mibbit.com Instructions for irc πŸ˜€ Alpha released!

 
Posted : 10/03/2008 3:24 pm
Share: