Subtitle

Posted in: Newspaper
Post count: 159

How can I use the “subtitle” function in a module (e.g. td_module_9php), because I want to use it at the homepage.

Post count: 854

hi,

can you give more details.
where is that function located?

Thanks for you message.
Radu A.

Post count: 159

It’s the custom field “Subtitle” in Post settings used in newspaper\includes\modules\td_module_1.php
<p class="td-sub-title"><?php echo $this->td_post_theme_settings['td_subtitle'];?>

I want it to use in antoher module e.g. newspaper\includes\modules\td_module_9.php

Post count: 3343

Hi,
The subtitle was used in Module 1 because that was before the post file(single)

If you want custom fields you can use a plugin and create new custom fields and you can add it anywhere. Here are a implementation with that plugin: https://forum.tagdiv.com/topic/costumize-show-date/#post-6630

Thanks for your message!

Post count: 159

So I can’t use the existing “subtitle custom field” anywhere else? Only in Module 1?

Post count: 3343

Hi,
I found how to make it.

Add the code like here: http://screencast.com/t/dnilZqbH

global $post;

and

<?php $td_subtitle_module = get_post_meta($post->ID, 'td_post_theme_settings', true);  ?>
                <p class="td-sub-title"><?php echo $td_subtitle_module['td_subtitle'];?></p>

Thanks for the message!

Post count: 159

Hmmm… are you sure? Have you tried this, because it doesn’t work in my localhost website…

Post count: 3343
Post count: 159

You’re right, in a seemless module it does work properly, but I want to use it in the “Homepage – blank Template”.
I use “Block 9” which includes “module 8” and that doesn’t work. Hmmm….

http://www.directupload.net/file/d/3557/g7pb88dr_jpg.htm

Post count: 58

Hi Mirko,
da habe ich mal eine ganz dumme Frage: wie bist du zu Block 9 gekommen?? Genau das brauchte ich aber bekam hier keine passende Antwort. Meine noch nicht “gefinishte” Seite heisst übrigens opencitii; du hattest mich mal danach gefragt. Anfang April gehe ich damit sozusagen “in Produktion”. PS: Alle Bilder und Content-Texte sind Dummys. Bitte nicht wundern. Was die Seite bietet steht aber über dem bg-slider…

  • This reply was modified 12 years by ocbln.
Post count: 159

@ocbln: Hast du die aktuelle Newspaper 3.4? Es sind mit irgendeiner 3.x Version einige Module hinzugekommen.

Post count: 58

Hi Mirko,
danke für den Krückstock. Ich bin blind. Update ja, aber nicht genau hingeschaut weil mein Design eigentlich steht (und im Changelog auch nix davon gelesen). Nun kann ich meine Seite doch noch etwas mehr “aufhübschen”. DANKE!

Post count: 3343

Hi,

@mbasche
you have managed the issue?, now work in your block?

Thanks!

Post count: 159

Nope. See above #post-8331

Post count: 3343

Hi,
Use this code instead of above

                <?php $td_subtitle_module = get_post_meta($this->post->ID, 'td_post_theme_settings', true);  ?>
                <p class="td-sub-title"><?php  if(!empty($td_subtitle_module['td_subtitle'])){echo $td_subtitle_module['td_subtitle'];} ?></p>

and delete this: global $post;

Thanks!

Post count: 159

That works! Thanks a lot for your support!!! 🙂

Post count: 29

Hi @mbasche und @ocbln,

da spricht jemand meine Sprache (hurra) 😉

Könnte ich mich mit euch etwas austauschen ohne das Forum vollzumüllen? Wenn “JA”, wie?

Post count: 159

Das ist ja kein vollmüllen. Ich sehe das unter dem Community-Aspekt “User helfen User”. Hilfe muss ja nicht immer vom Support-Team kommen.
Warum erstellst du nicht einen neuen Topich mit Hinweis auf “Deutschsprachiger Support” oder so ähnlich… Da haben dann auch andere etwas davon.

Post count: 29

gute Idee 😉 habe ich gerade gemacht

Viewing 19 posts - 1 through 19 (of 19 total)
You must be logged in to reply to this topic.