Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Pia Petterson
This personal blog site of Pia Petterson has been relaunched. Some tweaks needed, mainly content changes to accommodate the new responsive system.
Plugins:
- arc_twitter
- etc_pagination
- glz_custom_fields
- rah_textile_bar
- smd_thumbnail
- smd_where_used
Offline
Re: Pia Petterson
Love it, it’s a great piece of design.
Offline
Re: Pia Petterson
Great (both design and content)! The only (and very relative) imperfection I was able to spot, is the number of articles per page – a bit heavy on old small devices.
Offline
Re: Pia Petterson
@Phil – thanks very much! You might like the sister site I’ll post about tomorrow.
@Oleg – yes I do agree, think I’ll suggest that it be maybe 20 articles instead of 30. This the site where I’m using your etc_pagination plugin – thanks for that!
Offline
Re: Pia Petterson
jstubbs wrote:
@Oleg – yes I do agree, think I’ll suggest that it be maybe 20 articles instead of 30.
Thirty articles is ok on powerful devices, but how to distinguish between them? Maybe adi_mobile
?
This the site where I’m using your etc_pagination plugin – thanks for that!
Nice to know it, thanks! But given the (ever growing) number of articles, it would be prudent to set its range
attribute before the pagination takes all the space. :)
Offline
Re: Pia Petterson
Mmm ok – I added range="10"
to the plugin call and it displays more than 10 so not sure why that is – but I know you’ll tell me!
Took your advice re adi_mobile
and installed it, then placed this code in the page:
<txp:adi_if_mobile>
<txp:article limit="10">
<txp:else />
<txp:article limit="30">
</txp:adi_if_mobile>
But that returned no output at all (no articles!!) so I’ve returned the code to its previous state while I figure it out.
Offline
Re: Pia Petterson
jstubbs wrote:
Mmm ok – I added
range="10"
to the plugin call and it displays more than 10 so not sure why that is – but I know you’ll tell me!
Yes, it will display 21 or so links with range="10"
, i.e. 10 pages in each direction (older/newer). My English is loose, sorry. :)
Strange thing with adi_mobile
, it should display either 10 or 30 articles. Shouldn’t you add a slash to <txp:article limit="10">
?
Offline
Re: Pia Petterson
Ah yes, now I realise the error. Its a container tag so its unclosed and adi_mobile will not return any results. Thats a pain – I have quite a few things inside the container tag so can’t have it in single tag mode..!
Offline
Re: Pia Petterson
Try <txp:article limit='<txp:adi_if_mobile>10<txp:else />30</txp:adi_if_mobile>'>...</txp:article>
?
Offline
Offline
Pages: 1