Anyone have some suggestions how to set up a tutorial site

General project discussion. NOT for help questions.
Post Reply
dazzyweb
Forum Members
Forum Members
Posts: 29
Joined: Mon May 30, 2011 1:21 pm

Anyone have some suggestions how to set up a tutorial site

Post by dazzyweb »

Hi

I am trying to build a site with a list of tutorials
There will be about 30 different catergories and under those there will be anything from 2 to 6 tutorials in each catogory

These will just have text and pictures

Does anyone have any suggestions of the best way to go about this?
Should i just make a sepertate page for each tutorial or is there some better way of making this

Any suggestions would be appreciated
uniqu3

Re: Anyone have some suggestions how to set up a tutorial si

Post by uniqu3 »

You could have a look at News or CGBlog modules, these are meant for maintaining and writting articles.
dazzyweb
Forum Members
Forum Members
Posts: 29
Joined: Mon May 30, 2011 1:21 pm

Re: Anyone have some suggestions how to set up a tutorial si

Post by dazzyweb »

Would that be a better way to go than setting up individual pages?

If so which would be the better option to go for?
News or CGBlog module?
uniqu3

Re: Anyone have some suggestions how to set up a tutorial si

Post by uniqu3 »

CGBlog is a fork of News module, so these two are very similar, but with CGBlog you have for example option to post an article in multiple cateogries.

The best option is to try both and choose what suits you best.
I think using modules instead of regular pages would be a better option, at least from my point of view, as some day you might decide to change structure of your site or after 1-2 years you would have 1000 articles, with articles separated in a module you have a all in one place, which results in better maintanability. Just my thoughts.
dazzyweb
Forum Members
Forum Members
Posts: 29
Joined: Mon May 30, 2011 1:21 pm

Re: Anyone have some suggestions how to set up a tutorial si

Post by dazzyweb »

Thanks for you help

I will check them out
dazzyweb
Forum Members
Forum Members
Posts: 29
Joined: Mon May 30, 2011 1:21 pm

Re: Anyone have some suggestions how to set up a tutorial si

Post by dazzyweb »

with cgblog or news, If i make catogories and under them my articles

How can i display a list of the catogories and the articles under each catogory for example like below.

.catogory A
.article1
.article2


.catogory B
article1
article2

I assume i would have to change the summary template
Does anyone know what smarty code i would need to put
Also i would like the articles in a certain order under each catogory
uniqu3

Re: Anyone have some suggestions how to set up a tutorial si

Post by uniqu3 »

I would probably go with Category list and Summary template combo, maybe there is a better way.

For example if you want unordered list, the category tmeplate could look like this:

Code: Select all

<ul>
{foreach from=$categories item='one'}
  <li><a href="{$one.url}" title="{$one.name}">{$one.name}</a>&nbsp;({$one.count})
     <ul>
      {CGBlog summarytemplate='yourtemplatename' category=$one.name}
     </ul>
 </li>
{/foreach}
</ul>
Then summary template summarytemplate='yourtemplatename':

Code: Select all

{foreach from=$items item=entry}
  <li>
     <a href="{$entry->detail_url}" title="{$entry->title|escape:htmlall}">{$entry->title|escape}</a>
  </li>
{/foreach}
And then you simply call the module in Template or content:
{CGBlog action='browsecat' browsecattemplate='nameofyourcategorytemplate'}

Didn't test this if it works, so i hope it helps you ;)
dazzyweb
Forum Members
Forum Members
Posts: 29
Joined: Mon May 30, 2011 1:21 pm

Re: Anyone have some suggestions how to set up a tutorial si

Post by dazzyweb »

Thanks for you help

That works perfectly :-)
dazzyweb
Forum Members
Forum Members
Posts: 29
Joined: Mon May 30, 2011 1:21 pm

Re: Anyone have some suggestions how to set up a tutorial si

Post by dazzyweb »

Hi

still working on this site :-)

It seems that maybe i will have to switch to using normal pages since i can't seem to find a solution to a problem i now have.

I need each article i write to have a few sections that will have named anchors and i need to link to these from a menu at the side.

Do you know any way of doing this?

I see i can make up a normal page and put named anchor tags in there and then create some new pages with a redirecting link to link to these named anchors on the page but i think this is less than idea and a bit messy but does work.

Basically i need many pages each with sections that will be divided by named anchors and then a menu on the side that has the list of pages each with another list underneath pointing to the named anchors of the page

I hope you get what i mean

Maybe i am going about this the wrong way so any ideas would be appreciated
dazzyweb
Forum Members
Forum Members
Posts: 29
Joined: Mon May 30, 2011 1:21 pm

Re: Anyone have some suggestions how to set up a tutorial si

Post by dazzyweb »

no worries I sorted it all now :-)

I put the links to the named anchors of the articles in the summary section of the article and then adjusted the summary template so that just the link to the artcles and the links to the named anchors came directly underneath.
Don't know why i didn't think of it before but i am new to this system

Thanks again uniqu3 for your previous help
Post Reply

Return to “General Discussion”