I tried the module and it is not working. It rued both to hide the title on a specific page and on basic pages all together but the title is still displayed.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

gabrielu’s picture

Status: Needs work » Needs review

Have you tried permissions? You need to have permission to `use exclude node title` to see the effects.

drummondf’s picture

posted in wrong thread... sry :)

kiernan’s picture

I am also struggling with this module working. I have set permissions and configured a few different ways. I have checked the exclude button, and selected content types.

Is creating new content required?

gabrielu’s picture

No you only have to edit existing content and check for exclude node title.
Is the checkbox checked when you go back to the edit form?

kiernan’s picture

This issue seems present in panels. When I view the basic page the title is gone. Is this by design?

theullrich’s picture

I am having the exact same issue. Is their a module that conflicts with it? The only one i have that may conflict is views or cke editor, and that just does not seem likely that they would have an effect.

enrikito’s picture

+1

gabrielu’s picture

Hey,
The module only works with Full node view, or teaser view (if you check in configuration to exclude from teasers too).
If you have Title selected in a view, since it's extracted directly from database, it will pop up no matter what other modules hook into.

And with Panels, I am not sure of the behavior there, we must test.

Gabriel

gabrielu’s picture

Title: THis module does not seem to work on D7 » This module does not seem to work on D7
Status: Needs review » Needs work
kiernan’s picture

So I am finding intermittent success. I will try to replicate what appears to work for the non complying nodes. I have also found that hidden titles which work in Firefox show up in Safari. Any input?

gabrielu’s picture

This is weird, maybe it's because you are logged in as admin in one browser, and Anonymus user in another?! Otherwise there is no reason to have different behavior cross-browser.

Gabriel

kiernan’s picture

I see the titles in the Anonymous browsers. The only one which consistently works is in admin with Firefox.

deeve’s picture

Doesn't work for me either in 7.x
I have a zen sub-theme installed & had tried appending the 'zen_preprocess_page(&$variables, $hook)' function in template.php before I tried your mod, but had no luck with that either.

Does you module place the hook somewhere else & if so, maybe this has to be placed within the sub-theme?

Thanks.

**update: does now work on Basic Pages other than my home page which I 'promoted to front page' in publishing options..

gabrielu’s picture

I believe the page you promoted to frontpage is displayed as teaser, so you should check to hide title from teasers too in Exclude node title module Configuration.

deeve’s picture

Spot on, gabrielu ;)
Now I just need to find out how/where to remove the 'teaser' attribute of my homepage as will need other teasers to show their titles!

gabrielu’s picture

You will need to select manually which nodes to have title excluded, rather than the whole Content-type.

The will be more refined options in future releases and are in tests on the current DEV branch, if you are interested to test.

deeve’s picture

I'm ok for now as will only have 12 or so static pages & your current default 'hide title' check-box is set to off which should work fine for my 56,000 or so imported pages ;)

Thing is, I'm stumped as to how to stop my homepage from being shown as a teaser! I've looked in 'views' & 'Basic Page' node attributes. Do 'promoted to homepage' items have some kind of system default attributes - any ideas?

gabrielu’s picture

You should have a view like admin/build/views/edit/frontpage and select Row style: Node, click configure and select Build mode: Full node

deeve’s picture

Apologies if I appear slow to get this; I do have a view called 'Front page' but don't see an attribute called 'Row style'. Can I add this to the view?

chiappa’s picture

Here too not working. I have panels and panels everywhere installed, maybe that's why? Any research on that?

##edit

Ehem, I cant believe I'm so stupid, there is NO NEED for this module if you are using only panels. When editing panel content, make sure you have set Title type to: "No Title". Voila!

Also in the general menu when editing panels propably ticking: "Disable Drupal blocks/regions" is an equally good idea=)

djg_tram’s picture

This makes it work as expected.

While not strictly an error, so not fixed in this patch, I guess exclude_node_title_remove_title should be renamed to exclude_node_title_remove_teaser_title because this is what it actually denotes.

FrancescoUK’s picture

In the beginning I had this issue too (using AT Commerce theme), but since I selected hide from teaser it's sorted.
So please check that tick box if you are about to use AT Commerce.

PetarB’s picture

Using AT Corolla as well, this only works properly if the "Remove node title from teasers too" has been checked. I suspect this theme and others are showing the nodes as 'teasers'....?

Otherwise the module works perfectly for me on at least 2 installations.

Thank you!

dAv3’s picture

Status: Needs work » Needs review

Thanks very much djg_tram, the patch seems to have fixed this issue on d7.7

I can now hide a title without hidding it from the teasers. :)

djg_tram’s picture

You're welcome to it, I needed it badly, too... :-)

wranvaud’s picture

Same as #12. Anonymous users see the title...
The module only works for the role that it's not so important for it to work :(

snoopy77’s picture

Folks, the patch provided in #21 works perfectly for me (D7 v10). Many thanks !

Anonymous’s picture

As noted above, it looks like with http://drupal.org/project/corolla (and perhaps other adaptive themes?) the "Remove node title from teasers too" has to be checked for this to work, even when nodes are displayed in full.

gabrielu’s picture

Status: Needs review » Closed (fixed)

Considering closed.

malcolm’s picture

Using 7.x-1.5 version, I couldn't get it to work, until I went to the module's configuration page (admin/config/content/exclude_node_title), and checked the "Exclude From" box next to "Full view" and saved. I expected this setting to exclude the titles automatically for every piece of content of the Page content type I did this for. Instead, it turned on the function to allow me to exclude the page titles on the Page nodes' edit forms.

Clearer instructions; something like "To allow admins and editors to turn page titles on/off via a page's edit form, choose User Defined Nodes from the content type's dropdown, then click the checkbox for the type of display you would like to hide/display page titles for," instead of "Define title excluding settings for each content type." would help people a lot?

Thanks for your great work!

sandu.camerzan’s picture

Issue summary: View changes
Status: Closed (fixed) » Patch (to be ported)
Issue tags: +exclude node title in views drupal 7
FileSize
562 bytes

For making this work with nodes inside view displays, try this.

Direct reference for preprocessing / processing functions - https://www.drupal.org/node/223430.

I consider using "hook_process_node" is more suited for the targeted function results of this module.

sandu.camerzan’s picture

SKAUGHT’s picture

I seem to have been able to make this module work by altering the module weight in the system table. This seems to relate to the order that preprocess functional are called. a patch for the module install to set the module weight lower (natural sort lower) (ie 10).

SKAUGHT’s picture

fizk’s picture

@SKAUGHT How did you choose a weight of 10? Is there a particular module you needed this module to run after?

SKAUGHT’s picture

...10 is just kinda random. my very first test was 100 just to prof it. the goal here just to ensure exclude_title is last fired. 10, as a general patch i think should cover most other peoples circumstances..

sorry, I haven't looked more deeply to see what else may have effected it this way -- for the point of my current project, this is all i need myself. cheers.

an ideal weight will depend on another modules installed (and like anything, depend on each project and what mod's are being used.) have may have altered weight. (or just due to module namespace load order) -- a big old druaplism (:

===
just to share: i am also using auto_nodetitle & html_title. although i don't think they are to blame, i think i had this trouble with exclude_title before they were all introduced. My 'public theme' is forked from Stark..i have no preprocess in it's template.php at all.

fizk’s picture

Status: Patch (to be ported) » Closed (works as designed)

I'm closing this issue.

  • The patch in #21 is 4 years old and likely isn't needed anymore.
  • The patch in #31 isn't required for ENT to work in Views, assuming you're using the Content or Rendered Entity display format.
  • The patch in #34 can't be applied without understanding exactly which weight is needed, and why.