Questions tagged [content]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
15
votes
5answers
5k views

Solution for Matrix-within-Matrix (or More Robust Table Fields)

I was wondering if anyone has stumbled on a good solution for including matrix-like fields within a matrix block. I’m working on a site where each page's is constructed in one big matrix with several ...
14
votes
1answer
2k views

A/B testing - how to in Craft?

What's your process for A/B testing a Craft entry? I'm curious about how you'd structure alternative content for a page within Craft and what tools you'd use to measure the results. Any comments ...
9
votes
4answers
2k views

Is there a way to delete all entries?

Starting on a second site which is an almost like for like copy of the first, except it has different content. I cant use locales to manage it because there may be the possibility of multiple ...
7
votes
5answers
2k views

Has someone figured out Craft 3 content migrations?

One of the big features for craft 3 is content migrations. Migrating fields and sections between environments (like deploying code to test or production). I'm just having a hard time figuring out what ...
7
votes
1answer
980 views

One structure vs a structure per section?

I'm new to Craft CMS and I would appreciate some advice re the best approach to take for modelling content. I'm coming from an ExpressionEngine background, where I would typically use one pages ...
6
votes
1answer
228 views

How can I remove all text content and assets from a duplicated site?

I duplicated a site. What is the easiest way to delete all assets and text data but keep fields and sections in place?
6
votes
1answer
401 views

Migrate contents between fields?

Right now, we have a matrix field called post body which has all our content, we have text, image, video etc... In our image block we have 2 fields, An asset field called image & a plain text ...
5
votes
1answer
323 views

Globals versus Singles

We are building a restaurant site that has a banner image and some introductory text on each page. For pages that include content from a Channel, e.g. the wine list, we are using a Global to define ...
5
votes
1answer
779 views

How flexible is tying content to a structure?

I'm trying to decide how to organize my content on a site with a few levels of hierarchical content. I'm toying with the idea of creating structures for all my top level navigation items, with a few ...
5
votes
1answer
285 views

Content Modeling for Site Architecture Recommendations

I am doing some content modeling for a site with over 100 pages with a pretty deep tree. The site has a lot of what I refer to as "General Pages" as well as a collection of channel type content in the ...
4
votes
1answer
325 views

What is the best way to include an Element's content?

I'm creating a HTTP RESTful API plugin for Craft. In this case, I'm trying to return Elements (based on criteria), and include their content (via $element->getContent()). By default, if I return ...
4
votes
1answer
241 views

Updating just a single content field from a plugin

I have a Task that is running through a collection of elements, moving some data from one field to another. The problem I am hitting (more and more with situations like this) is that in order to ...
3
votes
2answers
1k views

Craft's Content Table

I'm essentially in the process of learning Craft and in that process have made some great strides. Today I was examining Craft's tables to see how it was actually storing fields created through ...
3
votes
2answers
632 views

Creating and using custom content tables

If I want to create fields that get set to a custom content table rather than craft_content how would I do that?
3
votes
1answer
789 views

Exporting Entry content

I really spend a lot of time searching for a solution to this problem. When I try using the Export plugin to export some entries with some Matrix fields and Neo fields for content, all that I can get ...
2
votes
1answer
1k views

Creating a related content subpage to a channel entry?

For a project I'm working on I have set up several channels that are related to each other. What the setup comes down to is the following: Channels: Projects |- News relations (news is a channel and ...
2
votes
1answer
170 views

How can Craft-generated Content HTML be accessed via an external PHP app?

We have a CakePHP 2.5 app for which we'll very soon be building a learning centre/knowledge base. Craft is one of the tools we're considering for that due to its apparent suitability for content ...
2
votes
1answer
258 views

What is the max # of version history for any given entry?

I can't seem to find anywhere mentioning what the max # of versions a given entry can have--I would assume its unlimited (given unlimited DB space).
2
votes
3answers
1k views

Advanced layout: Best way to create a tabbed page with variable content in each tab

I'd like to create some tabs on a page, and the content inside each tab. The thing is, inside one tab you will have 3 columns which would have a title/body in little sections for each column. Then in ...
2
votes
1answer
228 views

Best Technique for have sections in display in same page with anchor link to each section

I'm currently in the process of making a website for a restaurant and using Craft CMS & I'm not sure how to go about making the menu page. It is a very complete page with a bunch of different ...
2
votes
3answers
219 views

Adding description and other information to channels

This might be a little difficult to explain thoroughly and correctly, bear with me. :) The Problem The news website I'm working on has different categories based on topics, location, and "genres" (...
2
votes
0answers
377 views

asset.getUrl() outputs double slashes

Craft hasn't done this prior (or maybe I just noticed), but I'm currently battling double slashes in URLs returned from {{ asset.getUrl() }}. The issue appears when I create an Assets field and set ...
1
vote
1answer
2k views

Modelling flexible content sections and recommendations

A little background first; I'm coming from WordPress, along with the Advanced custom fields (ACF) plugin, so my thinking behind this may not be the best way in Craft. In ACF I usually set up a field ...
1
vote
1answer
110 views

How to handle client expectations regarding page building and layout within Craft

I love Craft CMS and use it for nearly every site I build. There isn't a better tool (in my opinion) for managing custom data. And using a matrix field as content builder solves the majority of my ...
1
vote
2answers
97 views

Content creation and translation workflow

I've developed my Craft website locally ( in fact on a virtual machine on the company intranet, so it's accessible within the company ). Now it's time to fill the site with contents and translate them ...
1
vote
1answer
308 views

Using Structures instead of Singles

Has anyone ever tried using Structures instead of Singles? I'm developing something that's kind of like multiple sites in one, they share the same central design, just with content differences and a ...
1
vote
1answer
948 views

I want to get the HTML/text contents of the Redactor editor

I'm building a plugin for Craft CMS. This plugin will load on the edit/content page, where the standard Redactor WYSIWYG editor will be loaded too (by CraftCMS). I want to get the HTML/text contents ...
1
vote
1answer
54 views

What's a Craft way to achieve extra info on specific relationships?

For example, say I have two sections: Services Locations I make an entries field called "Services" and add it to the Locations field group, so that on a Location entry you can add n number of ...
1
vote
1answer
51 views

Is there a fieldtype in Craft like “Content Elements” or “Bloqs” for ExpressionEngine?

I have been using EE for over 5 years now, and am just starting to get into Craft (and I love it!). In my recent EE sites, I've used Content Elements, and it has been a great way to give my clients ...
1
vote
0answers
10 views

Serializing assets field is returning a serialized criteria object, but how to return serialized data?

I'm saving a custom element that has content by field layout. When successfully saved, I return the object in the response. Now, most of the data is usable but the assets field is just a serialized ...
0
votes
1answer
109 views

content and fields won't show up on new single

I just installed Craft, linked it to my database (localhost) and then created a new single "about" page. But when I go to edit the single, there are no fields. I haven't changed anything else! When I ...
0
votes
1answer
39 views

Have auto selected categories with new section entry

Is there a way to have auto selected a category when an editor creates a new section entry in the admin? Kinda like a pre-filled field?
0
votes
0answers
32 views

Craft CMS Content has Disappeared?

My content within all of my pages has disappeared. The website is only displaying the header and footer on each page. When I try to restore the internal page to it's previous version to get the ...
0
votes
0answers
81 views

Locale migration …

Any thoughts on the best way (if at all) of bulk-migrating content within a site from one locale to another? We have a large(ish) site and want to streamline into a single locale. This means moving a ...