Expressionengine prev next display only 1 category - expressionengine

Hi everyone thank u for reading this
First of all sorry for my explanations, my tech english is not perfect
Well i have a channel named “blog” connect to different categories inside a group category.
I use an unique template for displaying all entries of all categories, i call it : “article”
Inside the article template, I want to display “preview” and “next” links to navigate through each entry of only one category (ID = 13)
with this code (example with the preview link) it’s working and when i visit a entry belong to the category 13 i see my links and able to navigate
{exp:channel:prev_entry category=“13” }
/expressionengine/themes/site_themes/agile_records/images/arrownavleft.png
{/exp:channel:prev_entry}
But my problem begin now,this links are also visible in all categories entries i don’t know how hidding these links (preview and next) in the article template for them! the code above is not enaugh , i try some conditionals with no success
Sorry i am mabye not clear but hard to explain in english
Thank u for any answer
R.

Try wrapping your Prev/Next Entry tag in a conditional so it only displays on entries for category 13.
I'd use Low Seg2Cat for this.
{if segment_1_category_id == 13}
{exp:channel:prev_entry category=“13” }
....
{/exp:channel:prev_entry}
{/if}
You'll need to set the segment_n_category_id to match the URL segment of your category.

Related

displaying fields on front end-Prestashop

i am new to prestashop and am trying to create an ecomm by myself, i am using a marketplace and have added the product reference as an author name and is successfully being displayed in the back-end. But my problem is that it isn't being displayed at the front end (product page).
But when these fields are being created by the admin, all fields are displayed in the produce page.
The screenshot of the front and back-end is attached below.the author and isbn fields are appearing
But here the author and isbn are empty
PLEASEE HELP
As you can see, you have some problem in your code. First of all you should read something about prestashop and creating shops. Next step is to fix a problem in a file smarty_internal_templatebase.php in line 53.
As I can see you have a problem with product's publisher. I assume your code looks like this:
<p id="publisher">{$product->publisher}</p>
// in other words
<p id="publisher">[show publisher no matter what]</p>
In the scenario above, we can clearly see that if a product we want to show doesn't have a publisher, then we are stuck.
I recommend your code to look this way:
<p id="publisher">{if $product->publisher}{$product->publisher}{else}No publisher{/if}</p>
// again in other words
<p id="publisher">[if publisher exists, show it, else write something else]</p>
Try to check on that and let us know what you've found.
Cheers, Mentozz.

Channel Entries tag pair not populating in the view template

I have a working template that is included in the right rail of my EE site.
This template pulls from a channel that simply relates entries from other channels to this specific channel on a one-to-one basis and is used as a sort of "highlight reel" or "Top 5" for the sidebar. The relationship is using Playa to link multiple different channel's entries to this one.
It works throughout the site with exception to an entry's view template. In that template it only returns with highlighted entries that match that channel. I am simply using the same embed code for another template that is embedded into every page. It embeds like:
index <- right_rail <- highlight_reel
For example, the highlight reel can pull from Activities, Events, and Food channels using Playa for the relationship. When you navigate to the view template of a particular Events entry this only displays Events entries that have been related.
Is there a configuration or parameter that needs to be set in order to keep the results consistent?
Let me know if there is anything else that would help you help me.
Some additional code for the loop:
{exp:channel:entries channel="most_popular" dynamic="yes" orderby="date" sort="desc" limit="5"}
{exp:playa:children field="popular_entry" status="not closed" disable="members" limit="1"}
Thanks a bundle in advance!
I was directed to a similar question that was asked and it totally solved the issue.
My mistake was that I had assumed that it would maintain the entry_id but by embedding it I was able to solve it.
Thanks a bunch!

Drupal6 - product comparison

Hi
I have not using any shopping cart module, just created a content type (product) and defining several field(attribute) for each product feature.
I want to ask is there any module in Drupal for product comparison or field comparison?
Thanks
No, but there is a way to do it with the Flag module and Views. It will take more work than just turning on a module, but the outcome is the standard product comparison you're looking for. See this article.
The article is no longer online: here the content of the original post.
Ubercart Product Comparison
For me, using Ubercart in Drupal as an e-commerce solution for your website is the way to go. I have been using Ubercart for years now for a number of web design and development projects, and there are a massive amount of contribute modules to beef it up. One feature that I have been keen to work on is a Product Comparison feature, which would allow users to select products and have them display on a page, providing them with a nice and easy layout to easily compare their selected products.
After searching around the web, I found a few articles and posts from people looking for this feature, asking how it could work or if anyone had done it, but couldn’t find anything that said “here it is, this is how it can be done”. So, after a little bit or research and a bit of a play, I have come up with a solution which is not that difficult to achieve and only requires some already existing Drupal modules with just a few tweaks.
Note: This tutorial assumes that you already have a working ecommerce site with Ubercart installed. Best to also try this on a test environment and not a live website.
Step 1. Download Required Modules
Download, install and enable the following modules.
Views (I used 6.x-2.11, I haven’t tested it with any other releases)
Flag (I used 6.x-2.0-beta3, I haven’t tested it with any other releases)
Step 2. Flags configuration – Setting up your “compare”
Once you have enabled the Flags module, go to the flags administration page at /admin/build/flags.
Click the Add link, enter the name of your flag (something like “compare”), and leave the flag type as “node”, and submit.
On the next screen you will need to configure your new flag. Complete the following fields (changing the values if you like). I setup my configuration so only registered users of the website could compare products.
Title – Compare Products
Flag link text – Add to compare
Flagged message - [title] has been added to your compare
Unflag link text – Remove from compare
Unflagged message – [title] has been removed from your compare
Flaggable content – Product
Check “Display login link for anonymous users.” and for anonymous link text add “[login] to add to your compare”
For flag access, check flag and unflag for authenticated users
Under Display options select “Display link on node page” and “JavaScript toggle” as link type
Click submit to save your flag.
With the settings we used, the “flag link text” should now display on your product nodes. Clicking it should make the “flagged message” appear and the link changed to your “unflag link text” using JavaScript.
So what we are doing here is just flagging nodes – it’s actually pretty simple. We are flagging/unflagging them as “compare product”, so you should now be able to (by clicking on the link provided on your products) add and remove products to compare on your website.
Now we have done this, we need to create a page to display our “flagged” products, in which this case is the products we want to compare.
Step 3. Creating out Compare Products Page
Go to the Views Administration page, enabling the Flag module creates a default flag view. You can use this as a reference, or even change this view to what you need, it’s totally up to you. All we need is a view with (at least) the settings explained below.
DEFAULTS
Basic Settings – Use at least the following settings
Title: Product Comparison
Style: Table
Items per page: Unlimited
Access: Authenticated user
Empty text: Full HTML
- You have not yet added any products to compare. Click the “Add to compare” link when viewing a product to add it to this page.
Relationships
Add the following relationship:
Flags: Node flag
- label: compare
- check “Include only flagged content”
- flag: select the flag you created in step 2
- by: current user
Fields – You can put whatever fields here you would like to show up against each product. You must include the Node Title, and ideally you would want to show a thumbnail of the product, its price and description and the unflag link to allow users to remove it from this page. I have the following fields for my compare:
Content Image using an imagecache, linking to product
Node: Title linking to product
Flags: Flag link
- Relationship: select the one you added
Product: Sell Price
Node: Teaser
Filters
Node: Published Yes
AND SAVE
Now add a new page display view and give it a URL, then save. Navigate to your new compare page using the URL you entered. If you haven’t “flagged” any products yet, go do so and once done you should see those products displayed on your Compare Products page!!!
But, there is one slight issue. Because we needed to use Style: Table to get the layout to better suit a compare list, it still doesn’t display it the way we need it too. We want to display each of the products horizontally, with each field label shown on the far left so it is easy to compare our products. To do this we need to retheme the table style for our view.
Step 4. Theme the table output of the view
Under Theme: Information for our view, it displays a list of all the possible templates for the display plugin and for the style plugins. Look for the list titled Style output. This is what we want. It lists the possible templates we can use to change the theming of the style output. The first one it displays is the generic template for the table style output but we don’t want to use this one, because if we do we could effect any other table style view that may be on the site. So best to use the next one across, mine was called views-view-table–flag-compare.tpl.php.
Create a new php file and name the file to the template name you want to use. In my case my file is named views-view-table–flag-compare.tpl.php.
Paste the Drupal 6 code from here http://drupal.org/node/174578 into your template file.
Then place the file in your themes directory – and presto! Your comparison table should be laid out more like a comparison style grid. Below is a screenshot of what my Comparison page looks like after a little bit of extra styling.
Try this module: https://drupal.org/project/comparison
Allows the comparison of the attributes of two or more nodes by generating a table. A checkbox is added to nodes to allow them to be included in the comparison. If two or more nodes are selected a link is added to a page with a comparison table.

Is it possible to extend Categories in ExpressionEngine 2

we are currently weighing up what cms to use with Expression Engine 2 being a strong candidate.
We would like to create a bilingual site where the categories would need to be in both languages.
I see that a category has the following fields
Category Name,
Url Title,
Description,
Image url,
We would also like to add "Category Name French" and "Description French" to each category and have them editable via the control panel form.
Does any one know if this is possible?
Any pointers much appreciated
Beyond the standard ExpressionEngine Category Fields — Category Name, Category URL Title, Category Description, Category Image URL — you can add as many additional Custom Category Fields as you see necessary.
You can add/edit custom category fields in the ExpressionEngine Control Panel at:
Admin > Channel Administration > Categories > Manage Category Fields
This would allow you to add your "Category Name French" and "Description French" fields to each category and have them editable in the Control Panel.
.
I use category parents to group the individual categories, you can then easily output the required categories based on language, either via the parameter "category_group". You can then use all the default category fields and custom ones.
Basically:
English
-- category 1 (in English)
-- category 2 (in English)
-- category 3 (in English)
French
-- category 1 (in French)
-- category 2 (in French)
-- category 3 (in French)
I believe the accepted best practice for multi-lingual sites in EE2 is to use the commercial add-on Transcribe. http://eeharbor.com/transcribe
The easiest solution around bilingual categories is writing the name of the second language category in the category description input field and then use {category_description} as the name tag for that language. That is not useful if you need a description for both languages though.
this might work for you:
I haven't used EE2.0, but in EE 1.X you could create custom category fields.
Create a "{fr_category_description}" for instance
then have a read at this tutorial - http://expressionengine.com/wiki/Multi_language_site_alternative/
I implemented this on an english/welsh website and it worked very nicely
URLs look like site.com/COUNTRY_CODE/template_group/template and serve content based on this.
works by assigning a variable based on the country, then within your templates you can do:
<h1>{{country_code}_my_field}</h1>
which will translate to:
<h1>{en_my_field}</h1> for site.com/en/ or <h1>{fr_my_field}</h1> for site.com/fr
you just need to create fields with the country code as a prepended and you're good to go.
let me know if you need any clarification, can provide code from my live site.

Userimage in Sharepoint Blog comment

I´m searching for a way to display the userimage next to the name of a Blog-comment in sharepoint 07. First idea was to add a Image column to the comment list and use a add event to fill it, but this would not catch a change of the userimage and I still have no control over the rendering.
Thanks for any suggestion
ren
To make a long Story short , there seems to be no simple Solution to achieve this.
The Listview for the comments can not be bend to show userimages.
Finally I had to create a own webpart to show the Post and the corresponding comments, but be warned. You have to search all comments associated with the Post and get the Userprofile for each user that left a comment.
Even I get Linq to work with MOSS07 the performance for large Blogs might suffer

Resources