By mauricio herzog on Tuesday, 01 March 2016
Posted in General
Replies 5
Likes 0
Views 417
Votes 0
HI, I just upgraded to the latest version, and noticed the there are some layout problems with my blog. The main problem is having the field information appear after the text content. I believe that I had set it up so it would appear in the beginning, but it must have been reset (which should not have happened, as people accessing the blog today and tomorrow will view the blog with the problems). Could you please check what happened and make sure this does not happen in future upgrades, please?

Thanks

Mauricio
Hi Mauricio Herzog,

I am sorry for the late reply for this. As far I understand here, you wanted to having the field information appear after the text content. Firstly, to display it on the Easyblog Frontpage listing, you must enable this option: http://screencast.com/t/x2GM2vXx .
1. Click Components>Easyblog>Settings>Layout>Listing.

Then you might want to open these two files:
../components/com_easyblog/themes/nickel/blogs/latest/default.main.php - For blog listing
../components/com_easyblog/themes/wireframe/blogs/entry/default.php - For blog entry (after clicking readmore button)

In these files, you can find for these codes:
For ../components/com_easyblog/themes/wireframe/blogs/entry/default.php
<?php if ($post->fields && $this->entryParams->get('post_fields', true)) { ?>
<?php echo $this->output('site/blogs/entry/fields', array('fields' => $post->fields)); ?>
<?php } ?>


For ../components/com_easyblog/themes/nickel/blogs/latest/default.main.php
<?php if ($post->fields && $this->params->get('post_fields', true)) { ?>
<?php echo $this->output('site/blogs/entry/fields', array('fields' => $post->fields, 'post'=>$post)); ?>
<?php } ?>


This is where it loads the custom fields. You can move these codes to change the position.

For make it not effected after you make update, you have to put the file that you have modified on your template. You can refer to this documentation on how to do Template Override http://stackideas.com/docs/easyblog/administrators/customizations/template-overriding.

Please give it a try.
·
Tuesday, 01 March 2016 16:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Muhammad. Right now, the fields appear after the text, however, this is not how I want it and it´s also not how it was prior to the upgrade. The field information was appearing right after the image title. Why did this change? How can it be reverted to how it was:

1) Image Title
2) Field information
3) Text information
4) Other information (author, related posts and etc.)

Thanks

Mauricio
·
Tuesday, 01 March 2016 20:39
·
0 Likes
·
0 Votes
·
0 Comments
·
I have been using custom fields since they were launched, so they have been enabled for a long time.
·
Tuesday, 01 March 2016 20:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Muhammad, I have changed the files, prior to the upgrade, so that the custom fields would appear on top (as you can see in this discussion: http://stackideas.com/forums/custom-fields-1). I am very frustrated that after upgrading, the files I changed were reverted to the original files. I remember changing other files for other reasons and I suppose all of that time spent changing the files was wasted, as I will have to change all files again. How can I ensure that the files will not change during the next upgrade?
·
Tuesday, 01 March 2016 20:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mauricio Herzog,

I am sorry for the late reply for this. As I told you earlier to make it not effected after you make update, you have to put the file that you have modified on your template.
For instance, if you want to override default.php files for EasyBlog, just copy the files/folders that you want from ../components/com_easyblog/themes/wireframe/blogs/entry/default.php in to the folder JoomlaFolder/templates/[TEMPLATE_THAT_YOU_USE]html/com_easyblog/themes/wireframe/blogs/entry/default.php

Or you can refer to this documentation on how to do Template Override http://stackideas.com/docs/easyblog/administrators/customizations/template-overriding.

Hope this helps. Have a nice day Mauricio Herzog .
·
Wednesday, 02 March 2016 16:44
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post