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.


Keywords not populated on Comcode pages

Login / Search

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

Community saint

I am new to ocPortal and still trying to grasp everything. Overall, I am very pleased.

When I create a new Comcode page, the keywords are not automatically populated as they are in some other areas. I know that the automatic keyword generation is not ideal but it would help as much of the material I am entering is copy and paste from another site. I can go back and clean up the keywords before I open the site.

My question: Should keywords be automatically generated on Comcode pages?

I am still running 6.1.1 as I don't want to upgrade until I have a handle on ocPortal.

Sorry if this has been asked before, but a search did not turn up anything.

Thanks for your help.

Bob
Back to the top
 
Posted
Rating:
#69471
Avatar

Hi Bob,

Funnily enough I was looking at this code just last night, and noticed an inconsistency on some level. I think it's gone unreported for years.

Attachment
cms/pages/modules/cms_comcode_pages.php
» Download: cms_comcode_pages.php (40 Kb, 123 downloads so far)
Attachment
sources/comcode.php
» Download: comcode.php (9 Kb, 132 downloads so far)
Attachment
sources/mail.php
» Download: mail.php (32 Kb, 123 downloads so far)
Attachment
sources/seo2.php
» Download: seo2.php (6 Kb, 123 downloads so far)


I have fixed the issue, and used the testing opportunity to improve the algorithm a bit (there were some issues with it not stripping out Comcode as well as it could).

This fix is for v7, it will break a v6.x install.


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

Community saint

Thanks for the reply, Chris.

I think I'll just do a backup and then upgrade to 7.0. What's life without a little excitement?

I am really finding ocPortal a delight to use. I am much further along than I thoughtI would be.
Back to the top
 
Posted
Rating:
#69556
Avatar

Community saint

BobS said

I am really finding ocPortal a delight to use.
Now, isn't that a nice comment to read …

 :thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#69825
Avatar

Community saint

So I upgraded to v7.0.1, anxious to see if this works and it does - for the first save. If I make subsequent substantial changes to the page and deliberately wipe out the keywords so that they will regenerate based on the new content, the keywords end up blank. I think that the keywords should regenerate anytime they are empty at save.

I use some e-commerce software which does just this. In fact, I can go into the database and manually wipeout the keywords, for example, one category of products and new keywords will be automatically generated for each product without keywords.

I know it is much better to manually assign keywords but it is a great shortcut to have the empty field auto-generated when trying to get a site up quickly. I can always go back and clean up the keywords at my convenience and it is almost always better to have some keywords over none.

At least, that my take.

Bob
Back to the top
 
Posted
Rating:
#69832
Avatar

you need to blank out both the meta description and keywords for it to regenerate them, otherwise it thinks you may have intentionally left an empty set of keywords


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

Community saint

Thanks,Chris. That makes perfect sense.

Bob
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: