Hide display of author info for content type

pshahmumbai's picture

pshahmumbai
February 20, 2010
1:51am

In drupal we can hide the author information for a particular content type. I dont want author name to be displayed in pages, webforms, etc. How do I achive the same in dg ?

Status: Unresolved

Comments

Moderator
heather.james@a... February 21, 2010
7:11am
This is how to...
  1. Go to the content type for which you want to hide Author/submitted info.
  2. Scroll down to see the tabs at the bottom and select Display settings.
  3. Un-tick the box Display author and date information.
  4. Then Save content type.

Heather James
Gardens Advisory Team | @learningdrupal

krisvannest October 24, 2010
8:14am

Hi Heather, as a sub-question, is there a way to hide the author/etc display based on content location, basically hide it for blocks but show it for pages?

For instance:

Blocks (disabled)... the Galleries "block" looks great without author information because otherwise it takes up too much space in the small blocks region/margin, but

Pages (enabled)... I need the author information displayed on gallery pages themselves, because without it on the pages they look barren and it's hard to navigate directly to a particular author's gallery (when viewing the page)

Thanks, KV

Moderator
George Cassie October 24, 2010
8:59am

Hi Kris,

Could you post a link to an example gallery site?

George Cassie
Gardens Advisory Team

krisvannest October 24, 2010
11:17am

Hi George thanks for reply (and working weekends as well!)-- since I'm doing regular changes/updates, probably best if I post or shoot you a static image of my use and intent in case I'm adjusting things before you have a chance to check out a live link.

Attached are two examples:

  1. Gallery Page & Block (no author information)
  2. Gallery Page & Block (with author information)

#1-- no author info-- is how I need the block to appear, but #2-- with/including author info-- is how I need the page to appear. But the only place I can see to toggle author info display on/off is in the main STRUCTURE=>CONTENT TYPE=>GALLERY=>DISPLAY SETTINGS. I checked under ...CONTENT TYPE=>GALLERY=>MANAGE DISPLAY=>FULL CONTENT and ...=>MEDIA GALLERY BLOCK for a place to move Author Info to "hidden" for only the Block display, but didn't see it available (it'd be great if the option was there!).

BTW let me know if attached/linked images aren't viewable and I'll adjust.

Thx KV

http://idisk.mac.com/krisvannest/Public/Screenshots/DG - Galleries - page and block - no author.jpg

http://idisk.mac.com/krisvannest/Public/Screenshots/DG - Galleries - page and block - with author.jpg

Moderator
George Cassie October 24, 2010
11:42am

Thanks for the links, Kris. I see what you mean.

Right now there's not a way to selectively control whether or not this information renders to the page, though I agree that would be handy and have filed a feature request - now tracking internally as #AN-20492.

You can, however, hide it in CSS. If you restrict it to the sidebar regions, there is a .meta region you could target with display: none; . If you can post a link to the block in question, I can provide the exact CSS.

George Cassie
Gardens Advisory Team

krisvannest October 24, 2010
12:15pm

Thanks for the quick feedback & Feature Request submit George. Meanwhile the CSS sounds promising... just not sure how I can post a link to a specific block?

Moderator
George Cassie October 24, 2010
5:12pm

Hi Kris,

Just a link to a page where the block is showing would be fine.

George Cassie
Gardens Advisory Team

This topic has been closed to further comments.

Feedback