Removeing page name and description from news items

Permalink Browser Info Environment
Hi there,

Just wondering of someone can point me in the right direction. I'd like to change the default for the hutman_news_item to NOT display the page name and description. Breadcrumb is OK to leave on page.

I removed the following from /packages/hutman_news/page_types/hutman_news_item.php
<h1 class="news-title"><?php echo $c->getAttribute('hutman_news_headline') ?></h1>
<h2 class="news-byline"><?php echo $c->getAttribute('hutman_news_byline')?></h2>

In the dashboard pages section when I look at the page template it looks as if it has been removed but when a page is made it still adds the page name and description if they are present in properties.

If the page name and descrption are left blank then it works but we then have a bunch of pages in the "Sitemap" with no names?

Thanks and regards
Ralph

Type: Discussion
Status: In Progress
macca448
View Replies:
hutman replied on at Permalink Reply
hutman
Those are the correct lines to remove from the page type, if you have caching turned on you will need to clear the cache before you will see the changes on the front end.
macca448 replied on at Permalink Reply
macca448
Thanks for the fast reply but I think you have miss understood my question.

We are still getting page name and breadcrumb in the header of the
hutman pages. It's no good leaving the page standard properties name and
blank as we then get a bunch of pages in the sitemap with no names and
no way of knowing which is which to alias to other nodes if required??

On the "news page" we don't want any header content (we use a banner on
every page) and on the "news item page" I don't want the the page name
but the breadcrumb is OK.

On other page templates to achieve this I removed a line that looks like
this to get what I want

<?php $this->inc('elements/pagemeta.php'); ?>

and to add breadcrumb if needed I add the " <div id="breadcrumbs">" block .

I apologize for my lack of understanding as I'm still a novice,
especially with PHP and can't see how to make these changes to get what
we want so it matches our site page themes??

Regards

Ralph




On 26/08/2016 00:50, concrete5 Community wrote:
hutman replied on at Permalink Reply
hutman
The lines that you removed from the Page Type should take care of this. Could you provide a link to a page where you are seeing this so I can get a better understanding of the problem?
macca448 replied on at Permalink Reply
macca448
This is a news item

http://www.amber.co.nz/~amber/about/news/453/...

and this is the news root which is also showing standard page meta and I
can't see why??

http://www.amber.co.nz/~amber/about/news/...


I should point out that another plug-in supplier told me that our theme
may be the cause of issues I had with his plug-in??

Regards

Ralph



On 26/08/2016 08:07, concrete5 Community wrote:
hutman replied on at Permalink Reply
hutman
Check the view.php in your theme for that include line, that's what wrappers package page types
macca448 replied on at Permalink Reply
macca448
Perfect! thank you so much. Works a treat now!!

concrete5 Environment Information

# concrete5 Version
5.6.3.1

# concrete5 Packages
Add Multiple Pages (2.1.1), Advanced Page List (1.0.3), Amiant CSS3 Menu (0.3), City5 Carousel (0.9.7), CSS3 Button (1.1), CSV displayer (1.2), Deluxe Image Gallery (1.6.6), Designer Content (3.1.1), Dynamic Iframe (1.7), File Templates+ (0.2), Google Docs Viewer (1.0), Hutman News (3.0.1.2), Iframe (1.0), List files from set (1.0.4), Magic Tabs (2.0.2), Page Hit Counter (1.1), Page List Title (2.3), Page Redirect (1.4), Page Selector Attribute (1.1), PC5 Custom Templates (3.5), PDF Viewer (1.1), Scrapbook Display - Basic (1.4), Search Block Templates (1.0), Simple Image Gallery (1.1.3), Slate Theme (1.5.3.1), Sticker (1.0), tnSpacer (1.3), Whale Nivo Image Slider (1.2), Where Is My Block? (1.1), Zoom Image (1.0.5).

# concrete5 Overrides
blocks/footer_back_to_top, blocks/autonav, blocks/page_list, blocks/image_pop, languages/zh_TW, languages/it_IT, languages/sk_SK, languages/nl_NL, languages/cs_CZ, languages/da_DK, languages/el_GR, languages/es_PE, languages/de_DE, languages/fr_FR, languages/es_AR, languages/fi_FI, languages/fa_IR, languages/ar, languages/zh_CN, languages/es_ES, languages/he_IL, languages/ru_RU, languages/nb_NO, languages/sl_SI, languages/tr_TR, languages/pt_PT, languages/es_MX, languages/ro_RO, languages/sv_SE, languages/vi_VN, languages/ja_JP, themes/theme_ambertech, themes/theme_amber_2

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
5.4.45

# PHP Extensions
bcmath, calendar, cgi-fcgi, Core, ctype, curl, date, dom, ereg, exif, filter, ftp, gd, hash, iconv, imap, ionCube Loader, json, libxml, mbstring, mcrypt, mysql, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, pspell, Reflection, session, SimpleXML, soap, sockets, SPL, sqlite3, standard, tokenizer, xml, xmlreader, xmlwriter, Zend Guard Loader, zlib.

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 8M
sql.safe_mode - Off
upload_max_filesize - 2M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; rv:48.0) Gecko/20100101 Firefox/48.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.