Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2019-11-13 10:12:45
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,177
change theme/page/style
hi!
there is a drop-down list at the bottom of presentation>section page. and if i choose ‘change theme/page/style’ option, development checkbox appears – what is the purpose of this option? Is it hides those sections from google? ;)
Offline
#2 2019-11-13 10:25:56
- Bloke
- Developer
- From: Leeds, UK
- Registered: 2006-01-29
- Posts: 9,972
- Website
Re: change theme/page/style
Not specifically to hide from search engines, though it does as a by-product. You now have two environments when dealing with themes:
- Development that only logged-in users see, so you can make changes to a theme Pages, Forms and Styles in relative safety on your live site, using live content to iterate your design.
- Live is what regular non-logged-in visitors see.
So you can choose when you change theme/page/style whether your change affects just you, while you remain logged in, or everyone. Thus, you can tinker without anyone else knowing, then ‘Publish’ (make Live) your theme changes to the section(s) you want via the multi-edit tool when you’re happy it works.
Last edited by Bloke (2019-11-13 10:27:31)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#3 2019-11-13 10:32:54
- etc
- Developer
- Registered: 2010-11-11
- Posts: 4,047
- Website
Offline
#4 2019-11-13 11:11:29
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,177
Re: change theme/page/style
Bloke wrote #320042:
Not specifically to hide from search engines, though it does as a by-product. You now have two environments when dealing with themes:
- Development that only logged-in users see, so you can make changes to a theme Pages, Forms and Styles in relative safety on your live site, using live content to iterate your design.
- Live is what regular non-logged-in visitors see.
that’s very useful option then! i really didn’t know. great!
Offline
#5 2019-11-13 13:00:00
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,177
Re: change theme/page/style
Bloke wrote #320042:
Not specifically to hide from search engines, though it does as a by-product. You now have two environments when dealing with themes:
- Development that only logged-in users see, so you can make changes to a theme Pages, Forms and Styles in relative safety on your live site, using live content to iterate your design.
- Live is what regular non-logged-in visitors see.
i’m trying to hide section ‘uudised’ from non-logged-in visitors, but unsucessfully. it is still visible
you can see my choices here
i checked development checkbox… what i don’t understand?
let’s just say that all my sections are under one theme, just some of them use different page and style (called vana).
my goal is to hide all sections that use page and style called ‘vana’ from non-loged-in visitors.
Offline
#6 2019-11-13 13:09:25
- Bloke
- Developer
- From: Leeds, UK
- Registered: 2006-01-29
- Posts: 9,972
- Website
Re: change theme/page/style
You can’t completely hide sections using Themes. You can just apply different Pages/Styles to logged-in users compared with live visitors.
So, for example, you could clone your current theme, make some changes “behind the scenes” in development, check them, then apply them live to your existing Sections once you/your client are happy.
To completely hide a section or only reveal it to logged-in users you need some conditional logic in your pages, e.g.:
<txp:if_section name="uudised">
<txp:if_logged_in>
... show specific logged-in content ...
</txp:if_logged_in>
<txp:else/>
... show regular content ...
</txp:if_section>
And of course, remove the sections from your navigation if you employ <txp:section_list>
tags.
Last edited by Bloke (2019-11-13 13:13:17)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#7 2019-11-13 20:09:26
- etc
- Developer
- Registered: 2010-11-11
- Posts: 4,047
- Website
Offline
#8 2019-11-14 09:33:30
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,177
Re: change theme/page/style
etc wrote #320063:
You can get close to it by putting just this in your “hidden” live Page:
<txp:txp_die status="404" />...
like this?
<txp:if_section name="uudised">
<txp:if_logged_in>
... show specific logged-in content ...
</txp:if_logged_in>
<txp:else/>
<txp:txp_die status="404" />
</txp:if_section>
how google will deal with error 404
pages? will it remove them from index…?
Last edited by Gallex (2019-11-14 09:34:00)
Offline
#9 2019-11-14 09:41:17
- colak
- Admin
- From: Cyprus
- Registered: 2004-11-20
- Posts: 8,448
- Website
Re: change theme/page/style
Gallex wrote #320069:
like this?
<txp:if_section name="uudised">...
how google will deal with
error 404
pages? will it remove them from index…?
www.searchenginejournal.com/google-404-errors-fine-long-no-links-traffic/243791/
Yiannis
——————————
neme.org | hblack.net | State Machines | NeMe @ github
I do my best editing after I click on the submit button.
Online
#10 2019-11-14 10:04:17
- etc
- Developer
- Registered: 2010-11-11
- Posts: 4,047
- Website
Offline