Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#11 2020-01-22 16:44:55

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 3,946
Website

Re: Would it be interesting to categorize the sections?

singaz wrote #321268:

It would be nice to be able to hide sections in the admin panel.

You can do that (and more) with bot_wtc and I’m sure there was a small code snippet somewhere on the forum for making a mini-plugin to hide certain sections from certain user classes. Search for pluggable_ui, article_ui or similar…


TXP Builders – finely-crafted code, design and txp

Offline

#12 2020-01-22 16:46:05

etc
Developer
Registered: 2010-11-11
Posts: 3,940
Website

Re: Would it be interesting to categorize the sections?

singaz wrote #321268:

It would be nice to be able to hide sections in the admin panel.

You can do it via a plugin, I guess, but it’s not a very good idea to use sections to output other things (sitemaps etc) than articles. Media-typed forms suit better here.

Offline

#13 2020-01-23 12:28:41

singaz
Member
From: Kyiv, Ukraine
Registered: 2017-03-12
Posts: 143

Re: Would it be interesting to categorize the sections?

Jakob, thanks for the answer.

Plugins become obsolete. Often authors stop supporting plugins. I try to use plugins to a minimum.

Plugins are the good.
Plugins are the problems.

If the plugin does not work in the new version, it becomes difficult and long to update the old site.

Oleg, I was late to follow the news.

rah_sitemap does not work correctly in recent versions.

Now this solution is being used. A separate section is used.

How to use media-typed forms, where to read?


Sorry my horror English. I’m learning textpattern, I’m learning English

Offline

#14 2020-01-23 13:00:54

etc
Developer
Registered: 2010-11-11
Posts: 3,940
Website

Re: Would it be interesting to categorize the sections?

singaz wrote #321293:

Now this solution is being used. A separate section is used.

The solution is fine, but instead of creating a page assigned to some section, you can create a custom-type form.

  • Go to Admin/Preferences/Admin tab. You will find there (at the bottom) Advanced options pref. Enable it if needed.
  • Now you have access to Advanced options link in the sidebar. Go there.
  • You will see Custom form template types textarea. Paste there something like
[xml]
mediatype="application/xml"
title="XML"
  • You have at present added XML to standard form types. Go to Forms and create a XML-type form called sitemap.
  • Paste there the content of your sitemap page and save.

The form will be accessible via index.php?f=sitemap URL. Tweak .htaccess rewrites if needed.

How to use media-typed forms, where to read?

Here

Offline

#15 2020-01-27 10:35:24

singaz
Member
From: Kyiv, Ukraine
Registered: 2017-03-12
Posts: 143

Re: Would it be interesting to categorize the sections?

Oleg, thanks for the detailed answer!

This is amazing!

I redid the sitemap on all my sites and freed up sections.

This way can make the pages “Terms of Use”, “Privacy Policy” and the like. And there is no need to write additional conditions in the sections lists and categories lists.

Another question:
Is there a way to create a separate field (custom_field) for the section and category?


Sorry my horror English. I’m learning textpattern, I’m learning English

Offline

#16 2020-01-27 11:16:37

etc
Developer
Registered: 2010-11-11
Posts: 3,940
Website

Re: Would it be interesting to categorize the sections?

singaz wrote #321360:

This way can make the pages “Terms of Use”, “Privacy Policy” and the like. And there is no need to write additional conditions in the sections lists and categories lists.

Yes, it fits well ‘stand-alone’ content that you want to take out of the usual txp workflow. You can even save and serve these forms to/from disk for better performance.

Another question:
Is there a way to create a separate field (custom_field) for the section and category?

Not that I know of, maybe via plugins.

Offline

Board footer

Powered by FluxBB