Hello!

I have placed a dynamic display block on my website's front page. I don't want every published node of certain content type appear there as I want to publish only selected nodes ( which are good ) through this block.

So how do I do this?
These are the options I can think of!
1) Create slide text field on create content page where I will be able to add some text by editing node after it gets published. I don't want users to write this slide text. I will alter permissions so that users won't be able to edit this field. But they will see it in the node(which I don't want). To solve this, If I change permissions to make it invisible to users, it will make slide text invisible on DDBlock also.
2) I can make another same content type with slide text field, url field, image field in it and republish that nice article, and give a link to original node (submitted by user), using read more link.
But what will happen in this case is that, if there is some clever user who is acquainted with drupal, he will just add -0 to node ID (as title will be the same) and will be able to see that node which I (admin) have published (with slide text field, url field, image field). I don't want to do this! (This will be the last option left to me if there isn't any)
3) I can deny access to content published through this content type,So that these clever users will get access denied errors. But it will make slide text invisible on DDblock also as slide text is now coming from denied new content type(I haven't tried doing this yet and don't know how to deny access to certain content type.)

In short,
1) I want to publish only selected nodes through this DDblock,
2) I want to enter slide text myself.
3) I want to make sure that when users will visit the actual node page, they won't be able to see the slide text, url text, image field.
4) I want to block this loophole mentioned in 2nd option above.

I hope I have mentioned my problem clearly.

Thanks!

-Saurabh

Comments

ppblaauw’s picture

Status: Active » Postponed (maintainer needs more info)

1.) to publish only selected nodes you could add a cck checkbox (promote to slideshow). In views you check if this checkbox is set.
or
use the flag module to do the same.

2.)
enable the content permissions sub module of CCK and give only the yourself permissions to edit this field (also the checkbox for promoting nodes)

3.)
You can hide the field in full nodes displays by setting in the display setting of the content type display to hidden

Hope this helps you further, please let me know.

saurabhi’s picture

Wow!

What a nice solution!

Why couldn't I think of changing display settings in content types? ( hmmm! that's the difference between an amateur and pro! :-)

Now only problem remains is to promote selected nodes to slideshow.

Will give it a try according to your solution and will let you know about this.

Thanks!

saurabhi’s picture

Hello ppblaauw!

How do I create this checkbox in cck? What kind of field type I am supposed to use?

Decimal, File, Integer, Float, Node reference, Text, User reference?

And every field type provides check boxes/radio buttons and single on/off buttons!

Looks like I will have to give some allowed values also. ( I just don't know what this means!)

Should I ask this on CCK issue page?

ppblaauw’s picture

You can make a field of type text, then choose checkbox.
For the allowed values you can use:

0|No
1|promote to slideshow

On two separate lines.
0|No for the off stage
1|Promote to slideshow, for the on stage
(Promote to slideshow will also be used for the text label of the checkbox in the create content screen)

Hope this helps you further, please let me know.

saurabhi’s picture

A weird thing is happening Philip.

First I had a content type called 'Have you read these'. To solve my issue of posting only selected nodes to DDblock, I had created this content type and idea was to republish every worth article through this content type to DDblock. And I had my DDblock working perfectly with this content type. But then you showed me how to hide the slide, pager text fields in full node through 'Display Fields'.

So now this content type 'Have you read these' was redundant/unnecessary. So for my original Product review content type, I created same cck fields and made changes to template.php file. Then I deleted this 'Have you read these' content type altogether.

Now problem is that though this content type doesn't exist anymore, I still get its name in debug lines when I uncomment the drupal set message. In short when I add content type as product_review in my template.php, I get invalid argument supplied type of message. When I set this content type to 'have_you_read_these', ddblock gets back to normal. What could be the reason for this?

Also on create content page (http://localhost/drupal-6.11/node/add/), I still have add 'Have you read these' content type and when I click on it I get redirected to the same page (http://localhost/drupal-6.11/node/add/) but now with url (http://localhost/drupal-6.11/node/add/have-you-read-these.)

I have tried clearing the cache but to no avail.

I just don't know what is happening on my website.

-saurabh

saurabhi’s picture

Sorry as I couldn't get back on this immediately. I haven't solved these issues yet! :-(

Though there is no content type named 'Have you read these', I am still getting its links on my create content page. (for admin as well as normal users! can't change the permissions as this content type isn't appearing there)

furthermore I tried to create a checkbox to promote selected content to DDblock as you said, but it didn't help! What type of content type I am supposed to check on DDblock view page? should I check every content type or no content type at all?

And still furthermore, I tried to use imagecache presets to adjust the image size on DDBlock (as it was distorting the image), also I changed the DDblock Default size to match my website layout. After these changes my DDblock isn't working any more!

I don't think there is any problem with template.php file. Its just that DDblock isn't getting imagecache preset images. Because I am getting DDblock working fine except images.

My image cache directory is located like this: sites/default/files/imagecache/ddblock_slide_image(preset name)/product review images(directory supplied by me on edit field type "Images" page to store imagecache preset edited images for this content type. I also have this same category 'product review images' under "files" also, where original unedited images get stored.

Hope this information is clear.

ppblaauw’s picture

Status: Postponed (maintainer needs more info) » Active

When I read your post #5 and post #6 I don't know where to start. It would take considerable time to solve all your issues, configurations and customizations via this issue queue to explain every step you need to do to get your required functionality.

I am at the moment very busy and just can not spend the time on this.
Hope you understand.

Maybe others can help you further for this moment.
See you also posted this at a more general place (http://drupal.org/node/742036, hope you get some assistance there.)

saurabhi’s picture

Yes, Philip I posted this issue on support forum also. Lets see what happens there!

You have already helped me so much. So if you are busy, Take your own time.

No hurry!

I will keep trying to solve this issue.

Thanks!