Mass publish/unpublish items

More
15 years 9 months ago #6248 by vfro
Hello

I need to publish/unpublish over 2000 articles..how can i do that for all necesary items at once?

Thank you

Please Log in or Create an account to join the conversation.

More
15 years 9 months ago #6343 by kenmcd
Replied by kenmcd on topic Mass publish/unpublish items
.
The easiest way would be to run a query on the database to change the published setting.


.

Please Log in or Create an account to join the conversation.

More
15 years 7 months ago #7505 by coffeegroup
Slightly related to this, it would be interesting if FLEXI had a "Mass Content" way to add new Categories and (sub) Categories en masse on one screen, rather than one at a time. Is that already possible?

Here's a link to the Mass Content for Joomla 1.5, for
example:

www.baticore.com/Mass-content/View-category.html

John Coonen
Co-Host, CMS Expo
cmsx.us

Please Log in or Create an account to join the conversation.

More
15 years 7 months ago #7554 by coffeegroup
Ahah! Now I see the question you had, and I have the same issue. I imported my 500+ articles into Flexi, and they are all currently unpublished.

1. I can't click-to-publish one article at a time; rather, I am forced to open the article, and select "publish" once in the View Item mode.

2. I CAN select multiple articles, however I can NOT figure out how to choose to publish them all at once. There is no apparent button to toggle "Publish" or "unpublish."

Am I missing something?

John Coonen
Co-Host, CMS Expo
cmsx.us

Please Log in or Create an account to join the conversation.

More
15 years 7 months ago #7555 by fmgoodwin
It looks like one can change the publishing status of items when copying them in groups. I haven't tried this yet, however, because I don't really understand all the implications. Also, I'm not sure it's the most elegant solution.

I have the same issue, with more than 3,000 stories to publish.

Please Log in or Create an account to join the conversation.

More
15 years 7 months ago #7574 by kenmcd
Replied by kenmcd on topic Mass publish/unpublish items
.
This SQL code will set ALL Joomla articles to Published.
Code:
UPDATE jos_content SET state = 1;
That means ALL articles/items.
Including archived, un-published, or other states.

You can also limit the SQL to processing only particular "states."
The Joomla core states (that I have found) are:

1 = published
0 = un-published
-1 = archived
-2 = delete/trashed
I have not found specific documentation so this list may or may not be correct or complete.

Since FLEXIcontent has more/different item states there are other numbers/settings which may be found in that field.
I found these FLEXIcontent states in items.php (around line 329-346):
joomla_root\administrator\components\com_flexicontent\controllers\items.php

1 = published
0 = un-published
-1 = archived
-3 = pending
-4 = draft
-5 = in progress

I do not know what default state setting is on your imported items.
The FLEXIcontent default state is Draft (state = -4).
What is the state on your imported articles/items?


To limit the SQL to process only un-published items (state=0):
Code:
UPDATE jos_content SET state = 1 WHERE state = 0;

I tested this SQL to publish just draft items (state = -4):
Code:
UPDATE jos_content SET state = 1 WHERE state = -4;
This published the one item I had in Draft state in that database.


HAVE CURRENT BACK-UPS BEFORE YOU TRY ANYTHING!
You may expect laughing and pointing if you do not heed this advice.
:D

.

Please Log in or Create an account to join the conversation.

More
15 years 7 months ago #7946 by fmgoodwin
Dear kenmcd, Thanks for your reply to my query. I haven't tried your solution yet, because I was waiting to test out the latest flexi releases first to see if I have the same issue. But, I want to be sure to thank you for your response. :)

Regards, Francis Goodwin

Please Log in or Create an account to join the conversation.

More
15 years 6 months ago #8302 by bittingbits
Isn't thee a more elegant / intuitive way to batch publish / unpublish articles the way Joomla's default Article Manager does?
It's not like I can't run queries on a DB, but my customers certainly won't.

So far i haven't found an action button to do it, which is at the very least odd (FC 1.5.3c).

Please Log in or Create an account to join the conversation.

More
15 years 6 months ago #8306 by skipjack
I also think that flexicontent is lacking an publish/unpublish button in the item view menu.
As an alternative you can use the default joomla article manager to publish/unpublish your flexicontent.

Please Log in or Create an account to join the conversation.

More
15 years 6 months ago #8308 by bittingbits

skipjack wrote: I also think that flexicontent is lacking an publish/unpublish button in the item view menu.
As an alternative you can use the default joomla article manager to publish/unpublish your flexicontent.


I've figured :)
Problem is that most of our customers find such need awkward. Plus, it ruins my FC-only policy )in which i totally "obliterate" com_content").
Hopefully Emmanuel will address this sooner than later.

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save