Welcome, Guest
Please Login or Register.    Lost Password?

[FIXED IN 0.7RC5] Manual Input of Meta Data
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: [FIXED IN 0.7RC5] Manual Input of Meta Data
#23
[FIXED IN 0.7RC5] Manual Input of Meta Data 6 Months, 3 Weeks ago  
Hello again Matt,

My site has 350 articles, all with existing manually entered Meta Data.

I have been adding new articles recently with the Keyword and Description generation switched off so that I can manually add these myself. It is important to me that I get exactly the right related articles showing up so I have to pick the keywords carefully.

I still want to use the Related Items and Tags at the bottom of my articles so have the plugin enabled but I have found I have to disable it when adding a new article, otherwise it removes all of my Meta data when saving the article, leaving it blank.

I updated to the latest version a few days ago but it is still the same.

Is it possible for Add Keywords to leave the Meta alone if the Add Desscription and Add Keywords are switched off in the plugin?

I realise there is @Keep to preserve the meta - but I often need to update articles and I will at some point forget to enter this each time...

Many thanks,

Tim
Tim Daniels

Last Edit: 2010/01/05 18:47 By mattfaulds.
The administrator has disabled public write access.
 
#24
Re: Manual Input of Meta Data 6 Months, 3 Weeks ago  
Hi Tim

I'd not thought of this scenario. I've had a quick look at the code and there is an error causing this problem. I'll detail them below. I will also make a couple of changes to AK to allow on demand meta generation for this scenario. This would allow you to activate AK when you wanted which would seem to be the ideal solution for you. You could then edit the generated metadata to your heart's delight!

Currently addkeywords.php reads around line 283
Code:

if($addkeyParams->doKeys == 1 OR $addkeyParams->doDesc == 1) {
$meta_data = plgSystemAddKeywords::generateMeta($article, false, false, $addkeyParams);
}

// return the modified metadata for posting
$article->metakey = $meta_data['keywords'];
$article->metadesc = $meta_data['description'];

// Replace everything, everywhere
if($addkeyParams->doAll == 1) {
plgSystemAddKeywords::regenerateAll(false, $addkeyParams->doDesc, $addkeyParams, $excluded = $article->id);
}
return true;



Change that to:
Code:

if($addkeyParams->doKeys == 1 OR $addkeyParams->doDesc == 1) {
$meta_data = plgSystemAddKeywords::generateMeta($article, false, false, $addkeyParams);
} else {
return true;
}

// return the modified metadata for posting
$article->metakey = $meta_data['keywords'];
$article->metadesc = $meta_data['description'];

// Replace everything, everywhere
if($addkeyParams->doAll == 1) {
plgSystemAddKeywords::regenerateAll(false, $addkeyParams->doDesc, $addkeyParams, $excluded = $article->id);
}
return true;



Let me know!
mattfaulds
Administrator
Posts: 331
graph
User Offline Click here to see the profile of this user
Last Edit: 2010/01/05 08:16 By mattfaulds.
The administrator has disabled public write access.
 
#27
Re: Manual Input of Meta Data 6 Months, 3 Weeks ago  
Oh, don't forget that if you're using the fj_related items module, you can't use the tooltips function at the moment. I'm not sure why but I'll dig into that one soon too.
mattfaulds
Administrator
Posts: 331
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#29
Re:Manual Input of Meta Data 6 Months, 3 Weeks ago  
Hi Matt,

I got this when I went to the admin login page:

Fatal error: Call to undefined method plgSystemAddKeywords::allparams() in /home/poultrykeeper/poultrykeeper.com/plugins/system/addkeywords.php on line 197

I tried it twice in case I did it wrong the first time.

Yes I'm using FJ_related items - Strange - I thought the tooltips were working - they seemed to be...

Tim
Tim Daniels

The administrator has disabled public write access.
 
#30
Re:Manual Input of Meta Data 6 Months, 3 Weeks ago  
I think you may have made a small mistake with the code update.

Anyway, I've released 0.7RC5 now. It has a better fix for this behaviour - thanks for pointing it out!

However, what may be more interesting is the new option now:

If you have keyword and/or description generation turned off you can force processing by putting @PROCESS in the metadata box. This will then autogenerate just that box - ie description. You can then add whatever you like. Luckily, whatever you put into the keywords or description boxes manually will be preserved until you then tell AK to @PROCESS again. Nice eh?

Download it and let me know...
mattfaulds
Administrator
Posts: 331
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#31
Re:Manual Input of Meta Data 6 Months, 3 Weeks ago  
Tim Daniels wrote:
Strange - I thought the tooltips were working - they seemed to be...

I've checked again - on some systems it's fine. I have one site that doesn't like it though. I'll have to look into that again.
mattfaulds
Administrator
Posts: 331
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 12
Moderators: mattfaulds

Login

Make a Donation...

PayPal Donate

 

© 2009 Content: TrafalgarDesign. Template: Afterburner.