Welcome to WebmasterWorld Guest from 23.22.46.195

Forum Moderators: ergophobe

Recommed a CMS?

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

5+ Year Member



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!

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

5+ Year Member



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 !
1:15 pm on Sep 8, 2009 (gmt 0)

5+ Year Member



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?

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

WebmasterWorld Senior Member 10+ Year Member



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

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

5+ Year Member



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.

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

WebmasterWorld Senior Member 10+ Year Member



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?

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

5+ Year Member



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.

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

WebmasterWorld Senior Member 10+ Year Member



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.
11:26 pm on Sep 8, 2009 (gmt 0)

5+ Year Member



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.

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

WebmasterWorld Senior Member 10+ Year Member



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]

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

5+ Year Member



Yep, I am doing it now.

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

Thanks!

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

10+ Year Member



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.

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

5+ Year Member



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!

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

5+ Year Member



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?

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

WebmasterWorld Administrator ergophobe is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



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.

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

5+ Year Member



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).

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

5+ Year Member



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!

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

10+ Year Member



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.

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

5+ Year Member



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?

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

5+ Year Member



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.

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

5+ Year Member



I'm using the celju theme, I wonder if its a subtheme problem as it keeps reading the page.tpl?
5:05 am on Sep 12, 2009 (gmt 0)

5+ Year Member



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;
}

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

WebmasterWorld Administrator ergophobe is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Thanks for posting the solution!
8:28 pm on Sep 13, 2009 (gmt 0)

5+ Year Member



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

Can't stand it when threads are left hanging!

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

5+ Year Member



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?

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

WebmasterWorld Administrator ergophobe is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



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.
6:12 pm on Sep 14, 2009 (gmt 0)

10+ Year Member



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.

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

5+ Year Member



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.

 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month