Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-07-23 12:20:54

Avir
New Member
Registered: 2012-07-23
Posts: 3

Selecting which content users can edit

Hello.

I am setting up a website for 2 Estate Agents, I want to enable the E Agents too add properties, property details & to upload pics.

How do I set the property details DIV so the agents can edit the details without altering the rest of the page.
Basically I want only certain sections to be editable.

Last edited by Avir (2012-07-23 13:11:55)

Offline

#2 2012-07-23 13:42:44

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

Re: Selecting which content users can edit

It depends on your layout, but normally, that’s how Textpattern works. The agents only publish content (articles), within the article’s body, excerpt and custom fields (address, price and so on) if necessary. Then this content is integrated into the page/article templates (forms), created by the webmaster, which can include other stuff (logos, sidebars and so on). The agents normally have no access to templates, so they can not alter the global page layout.

Offline

#3 2012-07-23 13:46:00

Avir
New Member
Registered: 2012-07-23
Posts: 3

Re: Selecting which content users can edit

Thank you for your response.

Excuse my ignorance, so how do I select the contents I want the agents to edit?

Offline

#4 2012-07-23 14:17:19

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: Selecting which content users can edit

Articles are the contents that can be edited. Articles have some fields (excerpt, body, cat, sections, pub date, etc) that a user can type in in the article tab, then publish. You assign any article to one section. Page templates, coupled to section(s), dictate how articles in that section the articles’ field are to be displayed.

Offline

#5 2012-07-23 14:30:13

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

Re: Selecting which content users can edit

Basically, they can edit everything on the “Write” tab on the admin side, though some fields can be hidden. Each article will correspond to a property, so the excerpt could be

Beautiful country house provence-style.

and the body (eventually with some pics and html)

Beautiful country house provence-style in quiet setting on approx. 1000sqm property near Les Issambres, approx. 2000m of the beach, 130m² floor space, living room with fire-place, TV, telephone, terraces with beautiful sea view, kitchen with dishwasher, washing machine, laundry dryer, 4 bedrooms, 2 bathrooms.

For the address and other details, you can use some custom field. By default, two are displayed (custom_1 and custom_2), but the webmaster can add/rename up to 10 (more to come).

Now, a basic article form could be

<txp:if_individual_article>
  <div id="body"><txp:body /></div>
  <div id="address"><txp:custom_field name="address" /></div>
  <div id="other">some other stuff</div>
<txp:else />
  <txp:excerpt>
</txp:if_individual_article>

so the agents can not modify the contents of <div id="other" />. This will be processed by <txp:article /> tag in the page form, but the this page explains it much better than me :)

Offline

#6 2012-07-23 22:10:54

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Selecting which content users can edit

Also have a look at the wiki: User accounts. Don’t forget to follow the links.

Offline

Board footer

Powered by FluxBB