How to change the directory of blog posts in Drupal 6 - drupal-6

First time user here:
I am wondering how you can change the directory of blog posts from www.yoursite.com/node/... to www.yoursite.com/blog/...?

Use the Pathauto module to define an alias for "blog entry" nodes.
EDIT:
Then go to www.yoursite.com/admin/build/path/pathauto, under "Node path settings", put something like blog/[title-raw] in "Pattern for Blog entry path".
Finally go to www.yoursite.com/admin/content/node, select all your blog entries, and select "Update path alias" under "Update options".

Related

Creating editable content blocks in Contentful that are not part of a "Content Type"

Here's my scenario. My client's homepage has an introductory paragraph, and then a list of portfolio projects. I need both to be editable.
The list of projects is easy: I create a "Projects" content type and then each entry is fully editable.
But what about the intro paragraph? If I create an "Intro" content type, then my client can create/publish multiple entries of type "Intro", and I don't know how we'd know which one should be displayed.
Alternatively, following the logic in Contentful's Look Book tutorial I could create a container content type called "Home Page", with specific fields/reference fields giving me complete control over what appears. As a bonus, reference fields make sorting of the project list simple.
But what happens when the client creates multiple entries of type "Home Page"? I foresee the same confusion: which entry is the home page that should be displayed on the live site?
Thanks in advance for helping me grok this, or pointing me to info that will help me.
This is a common problem among almost every CMS I've worked with. You have certain content that is "global" and should not appear more than once. It could be things like the top menu, the start page text, settings for news feeds or footer content.
In many traditional CMSs you have the notion of a "StartPage" that often ends up being the container for such settings.
In Contentful you do not have the notion of pages as such, but your idea to create a "Home page" content type would work perfectly well in this situation. What you could do to limit the editors possibility to create more than one "Home page" is to make sure their role does not have access to create them.
Start by creating a "Home page" entry and then limit their role to only be able to create "Projects".
These settings can be found under settings -> roles

SharePoint 2010: Site Content and Structure copy/move is disabled

I want to copy (or move) a list (or a library) from one website to another:
From: https ://sp.mydomain.de/Website1
To: https ://sp.mydomain.de/Website2
When calling Site Content and Structure (https: //sp.mydomain.de/_layouts/sitemanager.aspx) and navigatin to Website1 I can select the list which I want to move.
In the menu action I only can select "delete" - not "copy" or "move" (grayed out).
I am doing this as the site admin (and tried site collection manager etc.)
http://imageshack.com/a/img823/258/oqlj.png
Why are these menu elements not available?
Best regards,
Stefan
This forumpost on Social Technet is about the same problem you are facing and in the answers are several options you can try out. One answer that got my attention stated following:
The move action is available only for individual items you can't perform move action for document library or for folder instead of move you can perform that using extension from gary lapointe http://stsadm.blogspot.com/2007/08/stsadm-commands_09.html gl-exportlist command.
This is the last answer on the page. I hope this is of any help!

Hook active trail path views Drupal7

I' am trying to make a custom module to set an active trail path to a menu.
I created a views page.
The active trail must be to a node or taxonmy term.
When I open the pages created by the view the active trail is not active.
I wrote the script here below but it doesn't work, can somebody please help???
function mymodule_views_default_views(&$view, &$display_id, &$args){
if( $view->name = 'productdetail';)
{menu_tree_set_path('menu-categorie', 'node/39');
}
}
Script is the wrong word, I used views and added the fields as mentioned above.
Sorry for the misunderstanding. I hope it helps.
I am happy, I have found the answer to my own question.
I like to share this answer, and hope, that this although helps others...
Here the answer:
In the view I added a field with the term-id / node ID which is although used for my menu and hide the output and do a rewrite of the output
I pasted the following code in text field for rewrite.
field_categorie-tid is my reference term from the menu
menu_tree_set_path('menu-categorie', 'taxonomy/term/[field_categorie-tid]');.
instead of taxonomy term you can although use node/[nid]
I added in the head section a global field
with php and token and put this script:
Thats all.
No hooks or custom scripting in template
I hope this helps someone else.

Discussion Board Subject View displaying "Attempted to use an object that has ceased to exist."

We did a database upgrade from SharePoint 2007 to SharePoint 2010. We are still using the 2007 interface. After the upgrade there's a problem with one of our discussion boards:
The discussion board is included as a web part on the landing page of one of our sites. It works there, no problem. However, if you click on the title of the web part to bring you to the default view for the discussion board (Subject View.aspx), you get an error screen with "Attempted to use an object that has ceased to exist."
I posted this question because I couldn't find the answer anywhere. Everything was either in relation to disposing the current site or KB 2575303. This was not my problem.
It turns out that I had to delete the view and create a new one. (Note, you cannot delete a default view, you must set another view as the default. When the view is no longer a default view you should be able to delete it.)
How to add/create views when you can't even get to the discussion board page?
Site Actions --> Site Settings
Under "Site Administration" click on "Content and Structure"
Mouse over the discussion board, click the down arrow and then click "Edit Poperties"
In a shocking turn of events office.microsoft.com was actually helpful.
If you are creating a Subject View, make sure that the Folders
section is set to "In the top-level folder"
If you are creating a Flat View, make sure that the Folders section is set to "In folders of content type Discussion"
If you are creating a Threaded View, make sure that the Folders section is set to "In folders of content type Discussion"
Failure to follow the above settings may result in the error "Attempted to use an object that has ceased to exist."
I ended up deleting the three default views; "Subject View", "Flat View" and "Threaded View" and creating new ones.
One odd thing, my original problem was with the Subject View - I couldn't create a new subject view without getting the "Attempted to use an object that has ceased to exist" error. However, since replacing the views, I haven't been able to replicate the "Attempted to use an object that has ceased to exist" error with the Subject View...
Final notes: If choosing the wrong option for "Folders" results in an error - why are the options all available? Shouldn't they be greyed out or hidden?

New site column not displaying in SPF2010

After much trials-and-errors, I've managed to find how to add new columns in Site Pages of our Sharepoint Foundation 2010.
I'll explain using a field called "Category" I created. The problem I have now is that the only way to add or edit my page categories is to first create a new page, enter its title when asked by the pop-up, enter the content of the page, saving, and then going back in to the page properties. That's the only place I'm seeing my new "category" field.
I've set the field as "required", so it's supposed to be filled, but it doesn't seem to matter.
Moreso, I'd like to see the categories of the page I'm looking at at the bottom, for example, but when I open a page I only see its title and content, nothing else.
Can someone help me understand how to manage this? I'm mostly on my own and SPF2010 is not very well documented for a newbie from what I've seen in my searches.
Thanks in advance.
Is your new column called Category part of your default View or whatever View that you are looking at?
Your question reminds me a precision I didn't wrote about:
In the "All Pages" View (if I understand Sharepoint correctly), which is like a list of all the pages of my site, I've managed to add columns for the new fields I've created.
My wish is to be able to enter data for these new fields at page creation, like when we enter the title of a new page, and/or when I go to edit its content.
Only place so far I found to edit my new fields is in the Page Properties, which requires the page to be created first, or in this "All Pages" View where I added my fields. I'd like to categorize my pages as I create them, which could save us lots of time since we're starting our documentation project and nothing has been done yet...

Resources