Questions tagged [sections]

181 questions
11
votes
1 answer

How to create a CMS editable channel section index page?

If I have a section called 'blog', and its handle is 'blog', and it's a Channel, all of the entries appear under http://mysite.com/blog/{slug} - which is great; but how would I create a page at mysite.dev/blog which is editable in the CMS, with its…
Matt Wilcox
  • 3,199
  • 1
  • 14
  • 28
3
votes
4 answers

Get the URL of a section?

Similar to this question: Output URL to section Let's say we have a section with handle 'places' which defines its URL format as 'places/{slug}'—how do I get the link to the 'places' index page? The question above goes via the entries in that…
hamishtaplin
  • 776
  • 8
  • 16
3
votes
1 answer

How can you check if a field exists in a section, not by entry?

For a plugin, I need to check if a certain field exists in a section. How can i manage that? I'm using the settings section from the plugin, looping through all sections by craft()->sections->getAllSections() and in the template with the following…
chris
  • 906
  • 6
  • 10
2
votes
1 answer

Resaving blog entries keeps failing

Recently changed the URL format for a section. Now I have a red circle in the upper right and an error message of "resaving blog entries - failed". Trying again results in same error. Any ideas what could be wrong?
Jim Hull
  • 53
  • 3
2
votes
1 answer

Section and template folder problem

I hope anyone can help me to get started. I think I have a brain freeze or something. I have created a section (structure) that is called "House". I want this section to use a template. In craft/templates/ I have created the folder "house" with the…
Joe
  • 79
  • 4
2
votes
1 answer

What are the consequences of choosing structures over channels?

I want to build an international directory of fishing port centres in Craft. Each port will have the same custom fields and be geocoded. The documentation here just doesn't make clear the ramifications of choosing channels versus structures. I get…
joomkit
  • 2,014
  • 1
  • 13
  • 24
2
votes
1 answer

How do I loop through and access all sections of returned entries?

On my search results page I want to add a section filter depending on the different sections that are included in all of the returned entries. I am getting all the sections like this: {% set entries = craft.entries.section(['inspirationArticles',…
Katrin
  • 674
  • 5
  • 16
1
vote
1 answer

Problem after renaming section

I had a section called vision which i renamed to articles. I did so by going in to sections and clicking the section and then changing.. Handle, Entry URL Format and Entry Template. I also copied and renamed all the template files. Now i can load up…
Tim
  • 355
  • 1
  • 8
1
vote
0 answers

CMS pages have become duplicated?

I have overtaken a project and noticed that the pages section of the CMS shows duplications. I have not come up against this before and was wondering if anyone has any suggestions to stop two of them showing at once. The fist duplicate shows like a…
Wally
  • 333
  • 1
  • 8
1
vote
1 answer

Retrieve section slug by handle

I want to be able to get the slug of my news section dynamically by searching for its handle. Slugs tend to change during the development phase, but the handle doesn't. That's why I want to hard code the news handle in my template to refer to the…
Matthias
  • 110
  • 7
1
vote
1 answer

Where/how to add a page title to a section (listing)

I have a number of pages/sections (listings) in either channels or structures. Each page/section (listing) will have a heading that displays an editable title of each page/section. Should I be able to set this up so the client can edit the title of…
BBaysinger
  • 339
  • 1
  • 15
1
vote
1 answer

Edit the create new section page

When creating sections, I need a way to toggle all of them off or on. I have 188 sites and you can imagine how big of a pain it is to untoggle one by one. Am I able to do this somehow? Create a module? Edit: I've been told creating this many sites…
good_afternoon
  • 319
  • 1
  • 10
1
vote
1 answer

best approach to call entries from two different sections

I have set up two sections for two different kinds of events. On one page I want to differentiate between them on the other page I want to list them all. How do I organise that best on the back end and how do I call it best in the template? big…
0
votes
1 answer

Click read more on a single and it takes you to items in a structure

Hey guys I was wondering if anyone could help me... I am trying to link from a readmore button in a single( it's like a services page) to pages in a structure. So instead of having a top level services page in the structure, having it as a single…
Steve
  • 93
  • 9
0
votes
1 answer

How to define section parent page?

I have a structure section with entry url format: "products/{slug}". All entries have they urls like "/products/category1/subcategory1/product1". Currently, I have a header navigation which opens product category pages like…
Markus
  • 11
  • 1
1
2