ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Stuck with Publishing

February 23, 2011 4:58am

Subscribe [2]
  • #1 / Feb 23, 2011 4:58am

    RockMass as

    2 posts

    Hi!

    Me and my dad recently decided to get EE and I was pretty excited about it
    (first time for me dealing with a commercial CMS).
    I have installed the system locally (trying to get my head around it before
    messing with it live), but for some reason I can not find or the editor (in
    the publish area). All I am getting is the title and URL fields.
    This is a fresh install and absolutly no modification to the settings are
    made.
    Could you please give me some right directions in how to enable the editor?

  • #2 / Feb 23, 2011 5:16am

    Ivan Waumans

    7 posts

    By default a channel (named weblog in EE 1.x versions) consists of only a title and url title field.
    You need to create custom fields and link them to a channel.
    Is this what you mean?

    in EE 2.x You can create custom fields via

    Admin -> Channel Administration -> Custom Fields

    You can link them to one or more channels via

    Admin -> Channel Administration -> Channels

    In the list of channels click on ‘Edit Group Assignments’ and select the Custom Field group from the list next to the label ‘Field Group’

    Ivan.

  • #3 / Feb 23, 2011 5:37am

    RockMass as

    2 posts

    Thanks for the quick reply Ivan!

    I will try that out and see if I can make any sense of it. 😊

    Cheers!

  • #4 / Feb 23, 2011 12:11pm

    Barry Cogan

    291 posts

    HI Sverre,

    This quick start guide should get you started.

    Goal

    Creating basic pages.

    Create Channel for Content Pages

    * Open the “Channel Management” page: “Admin” > “Channel Administration” > “Channels”

    * Click on “Create a New Channel button”. This will open the “Create a New Channel” page.

    * Set the “Full Channel Name” field to “Content Pages”.

    * Set the “Channel Name” field to “pages”

    *Click “Submit”


    Custom Channel Fields

    * Go to: “Admin” > “Channel Administration” > “Custom Fields” (screenshot)

    * Click “Create a Channel Field Group” (screenshot)

    * Type “Basic Content” for the name of the group. This will allow you to make simple content pieces.

    You will be returned to the Channel Fields page

    * Click “Add/Edit Custom Fields” on your newly created “Basic Content” group (screenshot)

    * Click “Create a New Custom Field”  on the “Add/Edit Custom Fields” page (screenshot)

    In Custom Field Settings do the following: (screenshot)

    * Set “Field Type” to “Textarea”

    * Set “Field label” to “Page Content”

    * Set “Field Name” to “page_content”

    * Set “Field Instructions” to “Enter content for the page.”


    In Custom Field Options (screenshot):

    * Set “Textarea Rows” to “18”.

    * Set “Default Text Formatting for This Field” to “xhtml”

    * Set “Show Formatting Buttons” to “Yes”

    Leave the remaining fields set to their defaults for now.

    *Click “Submit”

    Link Channel to Field Group

    * Return to Channel Management Page. “Admin” > “Channel Administration” > “Channels”

    * Click “Edit Group Assignments” for “Content Pages” Channel.

    * Edit the following settings on Edit Group Assignments page:

    * Leave “Category Group” to none for this example.

    * Set “Status Group” to “Statuses” from the drop down list

    * Set “Field Group” to “Basic Content”

    * Click “Update”


    Publish Some Pages

    * Go to “Content” > “Publish” > “Content Pages”

    * Enter a “Title”. “URL title” should be auto generated from the title. For this example the “URL Title” is very important. This is what we will use to load the individual pages.

    * Enter something for “Page Content”

    * Click “Submit”

    Repeat those steps at least one more time so you have multiple entries.  For the sake of this example make one of the entry Titles “About”. 

    Create Template Group

    * Open the “Template Manager” page:  “Design” > “Templates” > “Template Manager”

    * Click “New Group” in the “Template Groups” area.

    * Set “Template Group Name” to “page”

    * Do not Duplicate an existing Template Group

    * Make sure “Make the index template in this group your site’s home page?” is not checked.

    * Click Submit. This action will return you to the “Template Manager” page

     

    Create Template

    * Click on “page” in the “Template Groups” section if it is not already selected. This will ensure you are editing templates in the correct group.

    * With newly created “page”: group selected click on “index” to edit the template.

    * Enter the following into the template

    {exp:channel:entries channel="pages" limit="1" require_entry="yes"}
      {if no_results}
         {redirect="site/404"}
      {/if}
      <h1>{title}</h1>
      {page_content}
    {/exp:channel:entries}

    The code above will display one entry specified by entry ID or URL Title. If neither are supplied then the {if no_results} will evaluate to true and the code between the {if} pair will be run. In our case it is a fictional template called “404” inside the “site” template group.

    * Click “Update and Finished”


    The Result

    Now you have a template set up that will display any individual page from the channel “Content Pages”.

    *Visit your site: http://example.com/index.php/page/about .  You should see a Blank white page with “About” as the heading and whatever you entered as “Page Content”.  When you try the other entry URL_titles you will see that you also get the individual page information.

    I hope this makes it easier for you to understand and follow.  Try it out and let us know if that matches what you are looking for.

    Sincerely,
    Barry

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases