Home
Administer Blogs using the wsadmin Client
As an alternative to modifying the Blogs site settings from the Blogs user interface via the Administration tab, you can also modify settings using the wsadmin client.
Blogs site-wide configuration information is stored in the Blogs database, rather than in an XML file. Therefore, you do not need to check out (or check in) the Blogs site-wide configuration file because any configuration changes you make are written directly into the DB2 or Oracle database.
To view and make site-wide configuration changes to Blogs configuration settings...
- BlogConfigService.showConfig
- BlogsConfigService.updateConfig
Change a Blogs site-wide configuration setting
The following tables list the commands available for changing Blogs configuration settings. To change a setting, enter the appropriate property and a new value into the following command:
- Make the Blogs feature commands available to the wsadmin client...
For a cluster:
wsadmin>execfile("WAS_HOME/profiles/Dmgr01/config/bin_lc_admin/blogsAdmin.py")For a single server:
wsadmin>execfile("blogsAdmin.py")
- To view the current values of the editable configuration property keys for Blogs...
wsadmin>BlogsConfigService.showConfig() Blogs configuration properties: ACFEnabled = true CustomThemeAllowed = false EditingPollInterval = 15 SiteDescription = SiteFrontPageWeblogHandle = home SiteName = Blogs Home SiteNewsFeedsDefaultEntries = 30 SitePagesMaxEntries = 30 SiteShortName = Blogs Home TrackBacksEnabled = true UploadsDirMaxSize = 4.00 UploadsEnabled = true UploadsFileMaxSize = 1.00 UploadsTypesAllowed = jpg,jpeg,gif,png UploadsTypesForbid = UsersCommentsEmailNotify = true UsersCommentsEnabled = true UsersModerationRequired = false
BlogsConfigService.updateConfig("[property]", "[value]") where: [property] is a valid blogs configuration setting [value] is the new value for the setting. Example: wsadmin>BlogsConfigService.updateConfig("EditingPollInterval", "20")
Configuration updates take effect immediately and do not require a server restart.
General site properties
Option Type Description UI Field Equivalent SiteName String Updates the name of the site (displayed on the front page) Site Name SiteShortName String Updates the name used for the page tab in browsers Short name SiteDescription String Updates the site description (used on the front page) Site Description SiteFrontPageWeblogHandle String Updates the handle of the blog home page Handle of blog to serve as frontpage blog ACFEnabled String Turns on / off the Active Content Filter (The Active Content Filter removes unsafe HTML from Blog posts that could be used for a XSS attack.) Valid values are: true or false. Enable active content filtering EditingPollInterval Integer Automatically saves content in the editor when a user is creating an entry or a comment. Set this to the number of minutes between saves. Automatic save when editing (minutes)
Blog rendering properties
Option Type Description UI Field SitePagesMaxEntries Integer Maximum number of posts that a blog can have on its home page Max number of entries to allow per page SiteNewsFeedsDefaultEntries Integer Maximum number of posts that can be in a blogs feed Number of entries to provide in newsfeeds
Comment and trackback properties
Option Type Description UI Field UsersCommentsEnabled String Turns on and off the ability to add any comments in the site. Valid values are: true or false. Allow blog comments TrackBacksEnabled String Turns on and off the ability to add any trackbacks across the site. Valid values are: true or false. Allow blog trackbacks UsersCommentsEmailNotify String Whether users can get e-mail notifications when comments are added to their blog. Valid values are: true or false. Email notification of comments UsersModerationRequired String Indicates whether comments always require moderation before being added to a blog. Valid values are: true or false. Require comment moderation for all blogs
Upload capability properties
Option Type Description UI Field UploadsEnabled String If enabled, file uploads are allowed for this site. Valid values are: true or false. Enable File Uploads UploadsTypesAllowed String Comma delimited list of allowed file type extensions. Only files with these extensions are allowed to be uploaded Allowed Extensions UploadsTypesForbid String Comma delimited list of file type extensions that are not permitted. Files with these extensions are not allowed to be uploaded. Forbidden Extensions UploadsFileMaxSize Double Maximum file size that can be uploaded by any user Max File Size (MB) UploadsDirMaxSize Double Maximum size of total uploaded file for a given blog Max Directory Size (MB)
Theme property
Option Type Description UI Field CustomThemeAllowed String Determines if custom themes are allowed. Valid values are: true or false. Allow Custom Themes
See
- Specify an administrator e-mail address for Blogs notifications
Edit configuration property settings to change the administrator e-mail address for notifications. This is the address used to send system notifications, such as notifications sent to users who have posted inappropriate content.- Configure the flag as inappropriate feature
Edit configuration property settings in the contentreview-config.xml file to configure the flag as inappropriate feature for Blogs to specify categories and designate reviewers. Restart the Blogs application to see the changes.- Synchronize user identification data between Blogs and LDAP
You can run commands that will synchronize the unique identifier (user ID) and user email addresses used in Blogs with the user information stored in LDAP.- View and collect Blogs metrics
Enter a URL to view a standard set of Blogs metrics, or use administrative commands to collect metrics for the Blogs feature and write them to a file. No file check out or server restart is required when using these commands.- Restore a Community Blog after a Communities database failure
If the Communities database fails and is restored from a backup, you can restore the Blogs widget and delete any orphaned data.
Administer the Home page using the wsadmin client
Related tasks
Start the wsadmin client