I have a list of email id's with different domains as below:
domains = ['0009134#163.com', '001Ieiming#163.com','002181#mail.fju.edu.tw', '000396#mail.moex.gov.tw', '001kinga#wp.pl']
I want to make separate list of emails for each domain into individual list like this:
['0009134#163.com', '001Ieiming#163.com'],
['002181#mail.fju.edu.tw','003256#mail.fju.edu.tw'],
['001kinga#wp.pl']
I need to get a list of all domains registered in a specific country
like all domain has same domain extension example :
domains of Saudia Arabia usually end with :
.sa
.com.sa
.gov.sa
.edu.sa
.org.sa
so is there any way to get domain list for one country ?
i tried to use google like search :
site.*.sa
i show me only 28 page with 10 results per page = 280 total
it is not enough result !
Most ccTLDs don't publish the entire zonefile, for very good reasons.
So short answer: you probably can't
Can we use category page or product page for any other pages in hybris ?
In which scenario we go for content page, category page , product page ?
What will happen if i use product page as my home page or is that possible of doing it in hybris ?
As far i know is that the template structure is different for three pages. is there any other difference ?
I think there are three main points for the difference between those pages.
Yes, the template that is bind to a page type and so the structure
that you have.
The pages have different attributes on them. For example the categoryPageType has the attribute 'category'. So you have the possibility to maintain those attribute. For example the CategoryPageController will look for this attribute if you open a CategoryPage.
By having different page types you have the possibility to do a clean structure in your backend. So you can search for 'categoryPage' or 'contentPage' and so on.
So now to your question. Yes you could use every page type for every stuff you want. But it is like you use a category for representing a product for example... It is just use the right thing for the right requirements.
We are looking to redirect some query pages that are dynamically created based on a user search query, to subject pages (only if the query exactly matches a subject that we have in a list. This list contains +1000 subjects.).
Example:
$subjects = array("Marketing", "History", "Management", "Chemistry");
https://example.com/courses/?search=marketing should redirect to https://example.com/courses/subjects/marketing/ given that it exists in our array of subjects.
https://example.com/courses/?search=email+marketing should not redirect, given that it does not exist in our subjects array.
We are looking to perform these redirects on the server side using the htaccess file. Any suggestions on how to best execute on this?
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.