I have a lot of modules on the homepage. All are displayed with photos and description. I would like to display only titles... unfortunately I don't know how to set it up. I note - I just want the titles links. Without pictures and text previews. How can I do this?
|
Modules have their own template files. It is in the template files that control display. Basically you would work on each module to get it to display the way you wish. Geeks, making the world a better place |
Thank you. I know this. But what files and how can I do this? strange that I can't set this in the admin panel in each module.
Modules have their own template files. It is in the template files that control display. Basically you would work on each module to get it to display the way you wish.
|
Thank you. I know this. But what files and how can I do this? strange that I can't set this in the admin panel in each module.
Modules have their own template files. It is in the template files that control display. Basically you would work on each module to get it to display the way you wish.
Actually you can set the amount of text for the excerpt, not sure if one could set that to zero or not. There is also a setting for the thumbnail size.
Geeks, making the world a better place |
I also know this, but unfortunately it didn't help me. Shows an example of a blog module settings. Text disappeared but thumbnail picture still was there.

So it's not a good solution. I have also other modules such as 'job' that does't have this possibility. Please alternatives. It's very important for me.
Thank you. I know this. But what files and how can I do this? strange that I can't set this in the admin panel in each module.
Modules have their own template files. It is in the template files that control display. Basically you would work on each module to get it to display the way you wish.
Actually you can set the amount of text for the excerpt, not sure if one could set that to zero or not. There is also a setting for the thumbnail size.
2.jpg · 15.9K · 402 views |
That thumbnail size is probably the size of the thumbnail when it is created; therefore, current thumbnails would remain; it would only affect new content..
The thing is, you need to edit the template files, and that means for each one. You need to study the template files and learn how to accomplish this or put a job in the market and hire someone to do it for you.
You can of course post questions about specific template files if you don't understand them.
Geeks, making the world a better place |
OK, some of the homepage blocks are not displayed using templates. Geeks, making the world a better place |
I just want the titles links. Without pictures and text previews.
For example, like blogs.
You should look at /modules/blogs/templates/base/blogpost_unit.html
The lines to look at are self evident on what they do.

i.e. Lines 10 and 11 if removed will take out the "post description," while line 22 if removed removes the picture.
ManOfTeal.COM a Proud UNA site, six years running strong! |
Rather than remove lines of code, you might prefer to comment out the bits you don't want.
You could find out that you need some eye candy on your homepage, if it begins to look like an RSS feed.
I just reduce the number of items shown fom each module, to two or three, and let vsitors click 'View All' to browse the extended lists.
TravelNotes.org - The Online Guide to Travel |
Thanks for all reply. newton27 exactly what I mean, but, unfortunately, it works only partially. When I remove the line 22 pictures actually don't appear on homepage, but when I remove also line 11 (__post_description__) text preview doesn't exist on homepage, but after entering the link blog text also doesn't exist...how can I change it? |
RE
how can I change it?
Unfortunately you can't, removal from there is site wide.
ManOfTeal.COM a Proud UNA site, six years running strong! |
Let's look at the block on the index (home) page for blogs. There is a service function for that block.
function serviceBlogsIndexPage($bShortPgn = TRUE, $iPerPage = 0) { if (!$this->isAllowedBlogsPostsBrowse()) { return $this->_oTemplate->displayAccessDenied(); }
require_once( $this->_oConfig->getClassPath() . 'BxBlogsSearchUnit.php'); $oBlogSearch = new BxBlogsSearchUnit(); $oBlogSearch->PerformObligatoryInit($this, 4); $oBlogSearch->aCurrent['paginate']['perPage'] = ($iPerPage > 0 ? $iPerPage : $this->_oConfig->getPerPage('index')); $aVis = array(BX_DOL_PG_ALL); if ($this->getUserId()) $aVis[] = BX_DOL_PG_MEMBERS; $oBlogSearch->aCurrent['restriction']['allow_view']['value'] = $aVis; $sCode = $oBlogSearch->displayResultBlock(); $sPostPagination = $oBlogSearch->showPagination2(false, $this->genBlogLink('home'), $bShortPgn);
if ($oBlogSearch->aCurrent['paginate']['totalNum'] > 0) { $sCodeBlock = $sCode; return array($sCodeBlock, false, $sPostPagination); } }
That function can be called by:
BxDolService::call('blogs', 'blogs_index_page', array());
As you can see, that function is not creating key-value pairs to pass to a template.
Geeks, making the world a better place |
Ok after a few days of fun with the code, I see that there isn't much possibility to do that. It's very sad that there is no such option. Of course, I was able to bring to the fact that I've seen only links, but they're everywhere ..and not only on the homepage. So I decided to go back to thumbnail images .. but there is a problem, after the restoration of all things and changes.. in module "humor" - when I add something on facebook from module "humor" has no thumbnails! only dry link. What could be the reason? |
Let's start with one thing at a time. List the code modification you did for a block on the homepage; just one of the blocks. Geeks, making the world a better place |
Let's start with one thing at a time. List the code modification you did for a block on the homepage; just one of the blocks.
For example module listing (_unit.html)
<div class="bx-twig-unit-title bx-def-font-h2"> <a itemprop="url" href="__listing_url__"><span itemprop="name">__listing_title__</span></a> </div>
<div itemprop="description" class="bx-twig-unit-line bx-twig-unit-desc">__snippet_text__</div>
<div class="bx-twig-unit-line bx-twig-unit-special"> <a href="__category_url__">__category_name__</a><bx_if:sub_category> <span class="bullet">→</span> <a href="__subcategory_url__">__subcategory_name__</a></bx_if:sub_category>
</div>
<!--<div itemprop="location" class="bx-twig-unit-line"></div>-->
__jobs__ <bx_if:full>
<div class="bx-twig-unit-line bx-twig-unit-rate"> __rate__ </div>
<div class="bx-twig-unit-line bx-def-font-small bx-def-font-grayed"> __created__ <span class="bullet">·</span> <bx_text:_From /> <a href="__author_url__">__author__</a> </div>
</bx_if:full>
</div>
</div>
Module listing after:
<div class="bx-twig-unit-title bx-def-font-h2"> <a itemprop="url" href="__listing_url__"><span itemprop="name">__listing_title__</span></a> </div>
<div itemprop="description" class="bx-twig-unit-line bx-twig-unit-desc">__snippet_text__</div>
<div class="bx-twig-unit-line bx-twig-unit-special"> <a href="__category_url__">__category_name__</a><bx_if:sub_category> <span class="bullet">→</span> <a href="__subcategory_url__">__subcategory_name__</a></bx_if:sub_category>
</div>
<!--<div itemprop="location" class="bx-twig-unit-line"></div>-->
__jobs__ <bx_if:full>
<div class="bx-twig-unit-line bx-twig-unit-rate"> __rate__ </div>
<div class="bx-twig-unit-line bx-def-font-small bx-def-font-grayed"> __created__ <span class="bullet">·</span> <bx_text:_From /> <a href="__author_url__">__author__</a> </div>
</bx_if:full>
</div>
</div>
After:
<div class="bx-twig-unit-title bx-def-font-h2"> <a itemprop="url" href="__listing_url__"><span itemprop="name">__listing_title__</span></a> </div>
<div class="bx-twig-unit-line bx-twig-unit-special"> <a href="__category_url__">__category_name__</a><bx_if:sub_category> <span class="bullet">→</span> <a href="__subcategory_url__">__subcategory_name__</a></bx_if:sub_category>
</div>
<!--<div itemprop="location" class="bx-twig-unit-line"></div>-->
__jobs__ <bx_if:full>
<div class="bx-twig-unit-line bx-twig-unit-rate"> </div>
<div class="bx-twig-unit-line bx-def-font-small bx-def-font-grayed"> </div>
</bx_if:full>
</div>
</div>
I also edit twig.css and default.css
|
I don't even know what module you are editing. However, remember that I said that not all blocks on the home page are controlled by templates.
So what module were you trying to adjust?
Geeks, making the world a better place |
Yes, you're right. It remains to wait for such a possibility in the new version of Dolphin.
I tried to edit the module "buisness listings" from modzzz |
Yes, you're right. It remains to wait for such a possibility in the new version of Dolphin.
I tried to edit the module "buisness listings" from modzzz
I can not help with third party modules (and third party modules would not be affected by Dolphin upgrades) because I don't have access to the module's files.
Geeks, making the world a better place |
I have problem with share something from my website to facebook. I have only url..when I debug by facebook its working but I have error on my website to fix. How can I fix this? Please help
|
I would have started a new topic. When one goes to the forum, they are going to be looking at the titles; the title of this thread is about titles on homepage, not sharing to facebook. Geeks, making the world a better place |
Thanks. I usually do as you wrote but it was a mistake on the forum and I could not add a new topic. Appeared to me the error "enter at least 5 characters"
Now I can add new topic and here it is: http://www.boonex.com/forums/topic/Facebook-share-without-thumbnail.htm
I would have started a new topic. When one goes to the forum, they are going to be looking at the titles; the title of this thread is about titles on homepage, not sharing to facebook.
|