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,315
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
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
Online
Offline
#4 2019-11-13 11:11:29
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,315
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,315
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
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
Online
Offline
#8 2019-11-14 09:33:30
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,315
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
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 | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Offline
Re: change theme/page/style
Gallex wrote #320069:
how google will deal with
error 404
pages? will it remove them from index…?
Your 404 page will usually have meta robots sent to none…
What I do if a section shouldn’t show is:
- Make sure you have nothing in your site linking to it, including feeds and sitemaps.
- If it’s absolutely vital that nobody should be able to reach the page should they enter the url manually into the address bar, I use something like arc_redirect to catch those incoming links and redirect them to another page of the site.
You can use .htaccess
too, but it’s harder to remember what you’ve set up.
TXP Builders – finely-crafted code, design and txp
Online
#12 2019-11-14 10:35:12
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,315
Re: change theme/page/style
etc wrote #320074:
No, create a separate page with just
<txp:txp_die status="404" />
and make it live for hidden sections.
i did this:
<txp:if_logged_in>
<!doctype html>
...my old page...
</html>
<txp:else/>
<txp:txp_die status="404" />
</txp:if_logged_in>
Offline