homepage Welcome to WebmasterWorld Guest from 54.227.11.45
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Content Management
Forum Library, Charter, Moderators: ergophobe

Content Management Forum

    
Recommed a CMS?
mattwmc




msg:3985822
 4:03 am on Sep 8, 2009 (gmt 0)

I'm looking for something like -

I designed a web page from the ground up.

It's a "reviews" page.

What I need is to enable outside users to edit the page and save as a different one - using a WYSIWYG editor.

I think its called front end editing? or back end?

There would be 6 or 7 "fields" they would need to edit.

vbadvanced didn't seem to have what I was looking for.

I am currently installing Drupal and have read about Joomla and Typo 3.

Any ideas? Thanks!

 

cuervo




msg:3985946
 12:52 pm on Sep 8, 2009 (gmt 0)

you mean giving their ideas about something ? why should they edit the page and save it as another one if it is a reviews page !

mattwmc




msg:3985952
 1:15 pm on Sep 8, 2009 (gmt 0)

Because its a book reviews page and they would be doing reviews for different books - hence the need for a new page.

Why does it matter?

benevolent001




msg:3985988
 2:32 pm on Sep 8, 2009 (gmt 0)

I guess you are confused here a bit , or we are not able to understand you fully.

If your requirement is that you want page of book and below which each of users can write the reviews , then you need comment sort of functionality.

In drupal make a page for each book which you want to get reviewed , then allow users to give comments in the form of reviews , they can use wwsiwyg editor if you install along with star ratings for the book.

I only know about drupal at present , cannot tell you how to do this is wordpress or typo3

mattwmc




msg:3986038
 3:35 pm on Sep 8, 2009 (gmt 0)

Sorry for the confusion.

No, not comments.

I want outside users able to edit a template and create a new page.

They would edit a few fields, write their book review and save the page.

benevolent001




msg:3986054
 3:57 pm on Sep 8, 2009 (gmt 0)

If i am getting correct , you mean selecting options like

From a drop menu , how you rate it from scale of 1-10?

and many other questions ?

What you say?

mattwmc




msg:3986182
 7:27 pm on Sep 8, 2009 (gmt 0)

No, not a drop down menu.

I have Drupal installed and when you go to 'create a page' it shows you two fields to input text - a "Title" field and "Body" field.

I need something like that but with more field options.

I think I am using the right terminology, lol.

icedowl




msg:3986264
 9:45 pm on Sep 8, 2009 (gmt 0)

You might want to take a look at MODx. I'm fairly new to using it myself, but I believe it just might be what you're looking for.

mattwmc




msg:3986314
 11:26 pm on Sep 8, 2009 (gmt 0)

I seem to be getting where I want in Drupal so I'll check that out if I can't figure this out, lol.

I just need to add a few extra fields and not sure if Drupal will do that or not -- or if I need to edit the templates.

benevolent001




msg:3986434
 4:34 am on Sep 9, 2009 (gmt 0)

Yes you can add any number of fields , just see the CCK module , its addon module to Drupal.

[edited by: benevolent001 at 4:47 am (utc) on Sep. 9, 2009]

mattwmc




msg:3986435
 4:46 am on Sep 9, 2009 (gmt 0)

Yep, I am doing it now.

It's great! Exactly, what I was looking for!

Thanks!

BradleyT




msg:3986762
 5:47 pm on Sep 9, 2009 (gmt 0)

The next step will be for you to install the Views module. Views could create a page that lists all the book categories and how many book reviews are in each category. Clicking a category then takes you to a page that lists each review title with a small snippet of text - all without any programming.

Then you'll probably want to look into a template for your CCK node type (review). This way you can apply HTML and CSS just how you want it and get a nice looking review page.

Congratulations on choosing Drupal - I don't know why so many people on this forum mess around with anything else.

mattwmc




msg:3986843
 7:29 pm on Sep 9, 2009 (gmt 0)

Hmmm...that views module sounds pretty good. I didn't even think of that.

I have been doing the "reviews" template in the page node. Its been taking some time, but so far it looks good. I still need to incorporate my sidebar somehow into it. Not sure if I can edit the sidebar on the theme I am using or delete it and use a php includes - which is what I have been using.

The "reviews" section is only one part of the site. There are previews, news, articles etc. How do I make another node for those? Can I just copy the page.tpl.php and rename it to news.tpl.php and somewhere create a new node named "news" that uses that?

Yeah, Drupal is great! Going to save me a lot of time as reviewers would e-mail be their text in a .doc - I would then convert it to html via g-mail - view the source and copy the relevant content and paste it in pspad. Then upload. LOL. Can't wait!

mattwmc




msg:3987762
 3:31 am on Sep 11, 2009 (gmt 0)

Ran in to a slight problem.

I installed imagecache to use with cck imagefield so I can resize images. However, there is no option to link to a file/url (like imagefield does).

Any ideas?

ergophobe




msg:3987783
 4:45 am on Sep 11, 2009 (gmt 0)

A couple of things
- use a custom content type, not page. I think it's better in the end.

- for presentation, you can either create a template file (*.tpl.php file) for the content type or use the contemplate module. Even if you won't use the contemplate module on the production sites, it's very useful for seeing how to call each field in a template.

- I'm not sure I follow on the imagecache/imagefield thing. Basically two ways to go
1. Use the img_assist module in the "body" (which can be renamed) and allow the user to place the image anywhere she wants.

2. Figure out the name of the imagefield (again, contemplate module useful here) and put it in a particular place in your template if you want, say, a book cover in the same spot on each page.

mattwmc




msg:3987790
 5:04 am on Sep 11, 2009 (gmt 0)

Regarding the imagecache --

It resizes the image but doesn't give an option (like imagefield does) to link to file.

It only gives options to link to original image, node, url or path. I want one that will enable the resize image when clicked to go to url (like imagefield allows).

mattwmc




msg:3987794
 5:23 am on Sep 11, 2009 (gmt 0)

Whoops never mind.

I found the 6th option down a bit - LINK IMAGE

For some reason its not grouped with the other five.

Nice! Man, I love Drupal!

BradleyT




msg:3988054
 5:11 pm on Sep 11, 2009 (gmt 0)

The "reviews" section is only one part of the site. There are previews, news, articles etc. How do I make another node for those? Can I just copy the page.tpl.php and rename it to news.tpl.php and somewhere create a new node named "news" that uses that?

Well you have to think about what you're doing here. In general you will probably want to create more node-nodename.tpl.php files than you will page-pagename.tpl.php files.

Page.tpl.php is what holds the outer shell of your site while node-node_name.tpl.php can format specific content types within a page.

Now if you want news to have a completely different layout than normal, yes you would want to copy page.tpl.php to news.tpl.php. And you would still probably want to create a node-news.tpl.php file that styles each individual news article no matter how you do it.

I only use page templates in two spots - page-front.tpl.php for the homepage. It has a completely different layout than the rest of the site and the content is all static. Ane payment-receipt.tpl.php where I wanted basically just the header logo and payment information. No search bar, no footer links, etc..

I have about 5 or 6 node-node_name.tpl.php files. One for job listings so each job listing shows 5 header sections (if they were filled out). Another for our main content type. Another for news & events. Another for testimonials. And a few more. And the rest of the site is just free form Page content types.

mattwmc




msg:3988072
 5:33 pm on Sep 11, 2009 (gmt 0)

Yes, more node files. Then I can have a different node for each section (News, Reviews, etc) correct?

One other thing - is there any way to link an image so it opens in a new template?

Example -

Reviewer uploads pic that is 1200x1800.

On the review page it gets resized to 180x270.

Is there a way when that resized image is clicked it could open in a new template at 960x1440?

mattwmc




msg:3988256
 1:47 am on Sep 12, 2009 (gmt 0)

Ok. Another problem I am having.

How do I get a node to reference a different Page.tpl.php?

I created a 'News" node and a news.tpl.php.

How do I get that News node to use the news.tpl instead of the page.tpl?

Do I need to make a node-news.tpl.php? I did that but its still referencing the page.tpl.

Basically I just want to create new pages using a different template.

mattwmc




msg:3988299
 4:23 am on Sep 12, 2009 (gmt 0)

I'm using the celju theme, I wonder if its a subtheme problem as it keeps reading the page.tpl?

mattwmc




msg:3988308
 5:05 am on Sep 12, 2009 (gmt 0)

Cool, I figured it out.

In the celju template I used this code:

function phptemplate_preprocess_page(&$variables) {
// IF THIS IS NOT WORKING BE SURE TO CLEAR THE THEME REGISTRY.
// FAILURE TO DO SO WILL NOT ALLOW THIS FUNCTION TO BE CALLED.
if($node = menu_get_object()) {
$variables['node'] = $node;
$suggestions = array();
$template_filename = 'page';
$template_filename = $template_filename . '-' . $variables['node']->type;
$suggestions[] = $template_filename;
$variables['template_files'] = $suggestions;
}
}

and took out:

function _phptemplate_variables($hook, $vars = array()) {
switch ($hook) {
case 'node':

if ($vars['page']) {
$vars['template_files'] = array('node-default-page', 'node-'. $vars['node']->type .'-page', 'node-'. $vars['node']->nid .'-page');
}
else {
$vars['template_files'] = array('node-'. $vars['node']->nid);
}
break;
}

return $vars;
}

ergophobe




msg:3988841
 5:42 pm on Sep 13, 2009 (gmt 0)

Thanks for posting the solution!

mattwmc




msg:3988875
 8:28 pm on Sep 13, 2009 (gmt 0)

No problem. I like to come back and post the answer if no one has.

Can't stand it when threads are left hanging!

mattwmc




msg:3989174
 1:24 pm on Sep 14, 2009 (gmt 0)

Hmm...I guess I am looking for an image to be opened in a new template (html) script (not litebox).

I wonder if joomla has an extension for that?

ergophobe




msg:3989256
 3:56 pm on Sep 14, 2009 (gmt 0)

Just curious, what's the behavior if you turn off javascript (thus disabling Lightbox?). I'm not sure knowing that helps you, but it might be a starting point.

BradleyT




msg:3989316
 6:12 pm on Sep 14, 2009 (gmt 0)

Is there a way when that resized image is clicked it could open in a new template at 960x1440?

I would go with a litebox or similar type javascript solution for this.

mattwmc




msg:3989369
 8:27 pm on Sep 14, 2009 (gmt 0)

Yeah, I have litebox installed but that is not what I want.

If I can't figure it out I'll get someone to do it and post how.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Content Management
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved