Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2013-02-16 07:15:36

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

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

#2 2013-02-16 09:12:56

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: Pia Petterson

Love it, it’s a great piece of design.

Offline

#3 2013-02-16 09:48:11

etc
Developer
Registered: 2010-11-11
Posts: 5,028
Website GitHub

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

#4 2013-02-16 09:59:15

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

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

#5 2013-02-16 10:16:32

etc
Developer
Registered: 2010-11-11
Posts: 5,028
Website GitHub

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

#6 2013-02-16 10:36:57

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

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

#7 2013-02-16 10:50:25

etc
Developer
Registered: 2010-11-11
Posts: 5,028
Website GitHub

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

#8 2013-02-16 10:53:44

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

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

#9 2013-02-16 10:57:17

etc
Developer
Registered: 2010-11-11
Posts: 5,028
Website GitHub

Re: Pia Petterson

Try <txp:article limit='<txp:adi_if_mobile>10<txp:else />30</txp:adi_if_mobile>'>...</txp:article>?

Offline

#10 2013-02-16 11:35:29

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Pia Petterson

Thanks a lot Oleg! That works a treat.

Offline

Board footer

Powered by FluxBB