HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


[SOLVED!] Yes! You can add catalogue categories as CEDI pages!

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#60341 (In Topic #13112)
Avatar

Community saint

Out of curiosity...

Greetings,

I am wondering, is it possible to add catalogue categories as CEDI page links?

Here is something I am trying to do. I have a role playing community with a pretty active CEDI structure, aptly named the Encyclopedia Nor'Ova. I have a whole menu block for it, which provides links to various CEDI pages as well as some catalogue categories.

Now I have a CEDI page entitled Runic Elements and Magic. Going in there will show you the CEDI page links to various pages about that subject, ie… Runic Elements, Effects of Magic, and so forth. All of these are CEDI pages.

Well one of my members who makes active use of and contributions to the 'Encyclopedia Nor'Ova' has suggested "It would be awesome to be able to list spells and descriptions". You see, I have purposely left such out because I did not want to over burden the players of the site with such info nor did I want to divulge in too much from the book I am soon to sell through the site (it being a RP rule book). However his suggestion of making it like the glossary, where they simply name a spell and then give a description like with a definition does sound useful, especially for people who want to use such sort of thing and contribute their own creative magic if you will.

Well, a catalogue makes a lot more sense there IMO, than a CEDI page. With a catalogue it would all be listed alphabetically if I wanted, which I do, and I can determine ahead of time just what kind of info I want to allow on these things. So I created said catalogue and made the needed catalogue catagory, then I went into the CEDI page "Runic Elements and Magic" and proceeded to try and add the catagory as a link to that page.

It then dawned on me, how do I do that? The category doesn't give a page number ID like CEDI pages, and can't be picked from the easy picker thing at the bottom. Is this even possible? Any ideas or suggestions on this matter?

Much appreciated, in advance.


Last edit: by mythus

Legends of Nor'Ova: A site powered by ocPortal; home of the Legends of Nor'Ova tabletop RPG wiki and community.

Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!

"Those who want help should first be willing to give help."
Back to the top
 
Posted
Rating:
#60342
Avatar

Hi,

The catalogue entries and categories do have ID's. They are a little trickier to find due to the SEO, but if you look on edit links they are in there.

The following Tempcode would be a link to a entry #3 I believe…

Code

<a href="{$PAGE_LINK*,site:catalogues:entry:3}">View entry 3</a>

You could make that into a Comcode tag, via a Custom Comcode tag:

Code

<a href="{$PAGE_LINK*,site:catalogues:entry:{param}}">{content*}</a>
and use it like

Code

[tagname="3"]View entry 3[/tagname]

Not tried this though.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#60352
Avatar

Community saint

Thanks!

I'll give that a shot when I've waken up some lol. Then I'll report back if it worked or not. But before I do, I just want to make sure of onr thing first, that tag, is that used in the edit tree dialouge or just on the page?

Legends of Nor'Ova: A site powered by ocPortal; home of the Legends of Nor'Ova tabletop RPG wiki and community.

Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!

"Those who want help should first be willing to give help."
Back to the top
 
Posted
Rating:
#60355
Avatar

On the page.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#60371
Avatar

Community saint

Greetings,

Following your advice, I was able to more or less get what I was after, so thank you.

Here is a link to it. CEDI page: Runic Elements & Magic - Legends of NorOva

I have managed to get the link so that it goes sstraight to the Magic Spells catagory. I wonder though, before I mark this solved, is there anyway to get the link I have made to appear in the page tree or below it instead of as part of the 'body'? I plan to put some info in the body soon as well, and it would look like it belongs if I could somehow get it in the page links itself.

Legends of Nor'Ova: A site powered by ocPortal; home of the Legends of Nor'Ova tabletop RPG wiki and community.

Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!

"Those who want help should first be willing to give help."
Back to the top
 
Posted
Rating:
#60375
Avatar

It'd be a challenge, but theoretically you could use and to shift things around.

Something like this…

Custom Comcode tag:

Code

{$SET,extra_links,{$GET,extra_links}<li><a href="{$PAGE_LINK*,site:catalogues:entry:{param}}">{content*}</a></li>}

Some template (whatever CEDI one that includes those child links):

Code

{$GET,extra_links}


It would require things to be evaluated by ocPortal in the right order but in theory should work.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#60378
Avatar

Community saint

Hahahaha… this is definetly a challenge, no doubt. This is something I should not be trying to accomplice while tired.

So far my few feable attempts have managed to simply create a page with all of the craziness links and such as it's title. However I highly suspect that this is because I am forgetting something or typing and extra character that don't belong or so on. Sooooo…. I have decided to rename the 'new' page and place the link to the catalogue catagory there for right now, and attack this again in the morning with fresh eyes. The rest of tomorrow though will be extremely busy I fear, as will Thursday, so I won't likely be able to report on my successes or failures in the matter until Friday.

Thanks though for the pointers and where to look and such. Heck, if all fails I may simply decide to just fill in the new cedi page with information about magic spells and then a link to the catagory. I do think that one thing I may have not been clear on is I don't want to link to an individual catalogue entry here, but access to the entire catagory so that members can search through it and add to it as they like. Therefore I have been replacing your entry tag with the catalogue's catagory name. I wonder if that is causing the trouble?

See, I am rambling, that means I am tired.

Legends of Nor'Ova: A site powered by ocPortal; home of the Legends of Nor'Ova tabletop RPG wiki and community.

Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!

"Those who want help should first be willing to give help."
Back to the top
 
Posted
Rating:
#60383
Avatar

Therefore I have been replacing your entry tag with the catalogue's catagory name. I wonder if that is causing the trouble?

No, that wouldn't be a problem.

What I said may simply not work, it is pushing the limits rather.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#60385
Avatar

Right, I thought this was a nice ocPortal test, so I've tried it…
  • I should have used the SET directive instead of the symbol
  • It's worth noting if you change the Custom Comcode Tag you need to reedit the Comcode for it to regenerate
  • It's {content} not {content*}


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#60386
Avatar

The Custom Comcode tag 'replacement text'…

Code


{+START,SET,extra_links}
{$GET,extra_links}
<li><a href="{$PAGE_LINK*,site:catalogues:category:{param}}">{content}</a></li>
{+END}

And then put {$GET,extra_links} in CEDI_PAGE_SCREEN.tpl.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#60448
Avatar

Community saint

Greetings,

Sorry I haven't relied on this yet. I had a terribly busy past few days.

Thanks for your own testing lol, I am not sure I would have uncovered the need to use SET and such on my own. Well I am gonna go an give this a try and hope for the best. If not, I have my work around so it won't be the end of the world, but I think that if this does work this is further proof of the flexibility of ocPortal.

I'll keep you updated on my success or failure.

Legends of Nor'Ova: A site powered by ocPortal; home of the Legends of Nor'Ova tabletop RPG wiki and community.

Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!

"Those who want help should first be willing to give help."
Back to the top
 
Posted
Rating:
#60450
Avatar

Community saint

Greetings,

I have been working at this all morning, and while I can get the link to appear now, in a tree, I can't seem to get it to go to the right page. I am sure I am overlooking a minor detail, so I hope that with me providing what I have tried here, a fresh pair of eyes can show me what I did wrong.

So, when creating the tag I did this:

Code

{+START,SET,extra_links}
{$GET,extra_links}
<li><a href="{$PAGE_LINK*,site:catalogues:magic_spells:{param}}">{content}</a></li>
{+END}
 
I placed the needed tag in the tpl, and that works fine. However the link gave me an error about the page not existing. Double checking I saw that it put a param in the link that does not exist within the original link to the catagory.

So I took param out and now get a "The requested page gave no output."

Any ideas? I replaced category by the way with magic_spells since that is the name of the category. Is that incorrect?

Legends of Nor'Ova: A site powered by ocPortal; home of the Legends of Nor'Ova tabletop RPG wiki and community.

Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!

"Those who want help should first be willing to give help."
Back to the top
 
Posted
Rating:
#60473
Avatar

Any ideas? I replaced category by the way with magic_spells since that is the name of the category. Is that incorrect?

No, should be literally 'category'.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#60475
Avatar

Community saint

Ah thank you…

Of course, I replaced category when it should have been left in. It is working perfectly now, I much appreciate it!

For anyone else, here is what I had to do to make it work. I did have to take out the {param} from the custom comcode, for some reason it didn't work as long as that was in there.

Go to Setup, and go to custom comcode.

Name your comcode whatever, it gives you an example. Mine I named [ tree ] without the spaces of course, and proper usage is [ tree] link name [ /tree ], again without spaces.

Put this into the text to be replaced with your comcode…

Code

{+START,SET,extra_links}
{$GET,extra_links}
<li><a href="{$PAGE_LINK*,site:catalogues:category:name of your category}">{content}</a></li>
{+END}

Simply change the "name of your category" to the name of your catalog category.

Finally, go to CEDI_PAGE_SCREEN.tpl which can be found in styles -> manage themes -> your site theme -> edit templates.

Look for

Code

{+START,IF_NON_EMPTY,{CHILDREN}}
   <div class="cedi_page_children">
      <p>{!CHILD_PAGES}:</p>
      <ul>
         {CHILDREN}

Add {$GET,extra_links} right after that {CHILDREN} line, it should be spaced evenly with it.

Now, you simply add your custom made comtag into your cedi page by editing the page and putting it there. That will make this new link to your catalog category appear in your CEDI page tree at the bottom of your CEDI page, which I think is just bloody brilliant. If you want this to appear in other CEDI pages, just add that tag there. If you plan to make links to other catalog categories, just repeat the steps to making a custom comcode and place the tag in the CEDI pages you desire. The line you put into the CEDI_PAGE_SCREEN.tpl will let you from now on put in such catalog links into your CEDI pages. You just gotta make a new tag for each category.

Chris, thanks for your help here! And Chris, and others who work on making this product, I must say that I never cease to be amazed with just how powerful, how flexible… ocPortal truly is! This just goes to show that with just a little work there isn't anything that can't be done with ocPortal.

Legends of Nor'Ova: A site powered by ocPortal; home of the Legends of Nor'Ova tabletop RPG wiki and community.

Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!

"Those who want help should first be willing to give help."
Back to the top
 
Posted
Rating:
#60476
Avatar

Hi,

Actually if you leave param in, it should allow that bit to be dynamic, so you don't need a different tag for each link.
But you do need to specify it like [tag="id goes here"]description goes here[/tag]. 'param' is binding to 'id goes here'.
It's a bit more clear if I avoid Comcode shorthand and write out in full…

[tag param="id goes here"]description goes here[/tag]


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#60477
Avatar

Community saint

Oh, wow.. ok. Thanks for that explanation. I admit, I still have a lot left to learn lol.

Legends of Nor'Ova: A site powered by ocPortal; home of the Legends of Nor'Ova tabletop RPG wiki and community.

Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!

"Those who want help should first be willing to give help."
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: