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.


[RESOLVED] Using the "concept"/"concepts" Comcode tags

Login / Search

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

Well-settled

Having problems!

Greetings,

I'm just now trying to acquaint myself with the "concept"/concepts" functionality for Comcode pages, but seem to be running up against some kind of problem. This is what's happening.

First, I create a new concepts table with a name of its own, declare the name of a concept in the X key field, enter its definition in the X value field, and save the tag form. The concepts table gets generated, bearing its name, but
  • What it contains is the concept with a definition from a concepts table I've deleted, not the definition just created.
  • When I re-open the tag's form to edit it, there's no trace of any existing key or value. Re-entering these has no effect on the table output displayed.
  • If I add a further key+value pair to declare a new concept, it doesn't display at all on the outputted table, and likewise isn't recorded in the tag's edit-form.
There's also the following issue, which I imagine is consequent on the above. If (via the "concept" tag ) I create a (non-defined) concept independently of the concepts table, and bearing the same name as a concept I entered in the concepts table tag, its ID doesn't link to the concept table, but to my Site Zone start page.

Please can anyone help me out here? 

Thanks for reading!

Back to the top
 
Posted
Rating:
#105011
Avatar

Testing this now. First thing I noticed is the Comcode helper UI was not working right.


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:
#105012
Avatar

Okay, I'm going to have to rewrite a lot of this code. The concept stuff was devised for our hand-written Comcode pages, but breaks heavily when actually putting them in using the normal CMS workflow. Hot fix will come soon.


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:
#105013
Avatar

RichT said

Greetings,

I'm just now trying to acquaint myself with the "concept"/concepts" functionality for Comcode pages, but seem to be running up against some kind of problem. This is what's happening.

First, I create a new concepts table with a name of its own, declare the name of a concept in the X key field, enter its definition in the X value field, and save the tag form. The concepts table gets generated, bearing its name, but
    What it contains is the concept with a definition from a concepts table I've deleted, not the definition just created. When I re-open the tag's form to edit it, there's no trace of any existing key or value. Re-entering these has no effect on the table output displayed. If I add a further key+value pair to declare a new concept, it doesn't display at all on the outputted table, and likewise isn't recorded in the tag's edit-form.
There's also the following issue, which I imagine is consequent on the above. If (via the "concept" tag ) I create a (non-defined) concept independently of the concepts table, and bearing the same name as a concept I entered in the concepts table tag, its ID doesn't link to the concept table, but to my Site Zone start page.

Please can anyone help me out here? 

Thanks for reading!




Ok I've just fixed a tonne of bugs because nobody else tried to seriously use this yet except from us (as far as I am aware), but they don't directly correspond to the above as the real bugs confused you. There is no issue of old tables coming up, it's just the save UI saved it incorrectly, and probably by coincidence looked like something you had previously tried. There's also no malformed link on self-defining concept tags, you probably were inspecting the link from the status bar which actually points to "#" and is defined as unclickable.

Hotfix coming up in a moment.

Issues fixed:
  • Save UI not working at all
  • Edit UI not repopulating anything
  • Inability to save using normal CMS tools
  • No support for using the concept table on non-Comcode-pages
  • Problems keeping the concept links in sync with the concept tables (concept tables would need to save before a concept tag was added, and clearing Comcode caching would mess it all up)


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
 
Important!
Posted
Rating:
#105014
Avatar

Automated fix message

RichT said

Greetings,

I'm just now trying to acquaint myself with the "concept"/concepts" functionality for Comcode pages, but seem to be running up against some kind of problem. This is what's happening.

First, I create a new concepts table with a name of its own, declare the name of a concept in the X key field, enter its definition in the X value field, and save the tag form. The concepts table gets generated, bearing its name, but
  • What it contains is the concept with a definition from a concepts table I've deleted, not the definition just created.
  • When I re-open the tag's form to edit it, there's no trace of any existing key or value. Re-entering these has no effect on the table output displayed.
  • If I add a further key+value pair to declare a new concept, it doesn't display at all on the outputted table, and likewise isn't recorded in the tag's edit-form.
There's also the following issue, which I imagine is consequent on the above. If (via the "concept" tag ) I create a (non-defined) concept independently of the concepts table, and bearing the same name as a concept I entered in the concepts table tag, its ID doesn't link to the concept table, but to my Site Zone start page.

Please can anyone help me out here? 

Thanks for reading!

This issue has been filed on the tracker as issue #1702, with a fix.


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.
Important!
 
Posted
Rating:
#105016
Avatar

Well-settled

Sincerest thanks for all that, Chris!

The concepts UI/storage and table display are working fine now, I'm delighted to say.

It does appear though I'm not 100 per cent out of the woods yet, sorry to say. Concepts I've inserted inline are still linking to the Site Zone start page rather than to the concepts table where they're defined, whether or not they are inserted on the table's resident page or on a different Comcode page. However, I notice the link they're assigned with is different from before, and somewhat more accurate. I have a hunch the still-outstanding problem may be due to a misreading of one part of the link-path to the concepts table. The page on which my table resides is a CEDI page, its address .../site/pg/s/1/10/23/25 . The address to which an inline concept on the same page as the table is pointed to is, however  .../site/pg/start/misc/1/10/23/25 . Could it be that the code responsible for generating the link is interpreting /s/ as /start/ perhaps? And could that be due to the renaming of seedy to cedi?

I haven't as yet tried creating a concepts table on a non-cedi page, so perhaps I'd better do so now and report back.

Thanks again for everything so far, Chris, and kind regards,

Richard
Back to the top
 
Posted
Rating:
#105017
Avatar

Well-settled

Well, tried creating a concepts table on a child page of the Site Zone home page, and the result's the same - links to the home page like the cedi page, not to the child page, regardless of what page the inline concept that should be linking to it is on.

Guess my hunch might not be right after all. hmm
Back to the top
 
Posted
Rating:
#105020
Avatar

Ok, try this:

Attachment
sources/symbols.php
» Download: symbols.php (88 Kb, 74 downloads so far)


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:
#105021
Avatar

Well-settled

:thumbs::thumbs::thumbs: LOVELY!

Thanks so much for your further toil on the symbols.php. Everything now works a treat and seemingly robustly - all inline concept links now pointing correctly   and without weird "?redirects" getting inserted.

I'm currently writing a tutorial on usage of all Comcode Tag Assistant listed tags - primarily for my own members' reference, but it might be of some use in the ocP Community Cedi too, perhaps? The concept/concepts functionality seemed worth straightening out, as a centralized glossary might forseeably be seen as valuable by users of my site, given its academic nature and mission.

I noticed you've added quite a few more tags since v9.0.9! Naturally I'll be trying them all out and documenting them in the tutorial. Among the older set, there are two or three other tags I need help with (most likely from yourself, Chris!), and when I get the chance, I'll post topics on them one-by-one.

For now, hearty thanks and best regards,

Richard.

 
Back to the top
 
Posted
Rating:
#105022
Avatar

No problem. Please do share :).


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
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: