You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by "Robert G." <ga...@mercon24.de> on 2012/07/09 19:43:08 UTC

Re: Best practices to show banners

I want to archieve a similar thing (content slider on my startpage). 

This slider shall include:
- direct link to a product
- link to a category
- link to a content site

To get this, I have to put a link and an image in my backend for each slider
content. I want f.ex. to do it like explained above (do an extra categorie
for each slider content)...but for doing this Im wondering what the
following things are:

- related Url
- alternative Url
- video Url 

I think, that "alternative Url" is handled like an URL rewrite...that I can
get to the target Url with the "alternative Url"...but if so, what is the
related and the video Url?

For the image I can use the category image, but can I use f.ex. the related
Url to put in there a target Url...this Url I could get from my groovy file
to forward by click to the wanted content...but I do not want to get to the
category I added...

do you know what I mean?

Would appreciate a comment.

--
View this message in context: http://ofbiz.135035.n4.nabble.com/Best-practices-to-show-banners-tp4632580p4634625.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Re: Best practices to show banners

Posted by "Robert G." <ga...@mercon24.de>.
:)



--
View this message in context: http://ofbiz.135035.n4.nabble.com/Best-practices-to-show-banners-tp4632580p4635251.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Re: Best practices to show banners

Posted by Deepak Agarwal <da...@gmail.com>.
I knew it, I will receive tons of line in reply from you :D :) . Thanks a
lot !

Thanks for the detailed guidance.

On Thu, Jul 26, 2012 at 3:05 AM, Robert G. <ga...@mercon24.de> wrote:

> Hey Deepak,
>
> Factoids is a content box in ecommerce ofbiz, which is allready
> implemented.
> This box is shown in all places in the store at the right or left panel
> i.ex. The content is defined in backend CMS, where about 6 contens are
> allready defined. The box is now configured (in ftl), that this shows
> randomly 2 contents out of the 6 available. The content is as you prefer,
> like a banner with anchor, or just text as information...
>
> at the moment it is used for like "did you know?..." and shows some news.
>
> But this is just an example of a content box. with that you can find how to
> handle it. Cause it is not in my focus actually, I just looked in the past
> how it works - was not difficult, but I allready forgot that :) just follow
> the files...
>
> So at this point this box is shown everywere. But it can be interesting to
> show it just in specific categories, or to show specific content in it,
> depending of the categories, or products and so on.
>
> So you can write functions to show specific content boxes just in specific
> situations (specific category etc.)...thats the way I think it can works.
> You probably can name the content in CMS like:
> cat_content_*hereyourcategoryid
> *
>
> than write i.ex. a function, where you search for all contents (which are
> not expired) which start wit cat_content_ and than split the name to get
> the
> category id. Than you can display it depending on the id value, so you do
> not have to change your code when you want to display it elsewere. With
> that
> you can just use CMS, and tell your employee, that they have to use the
> name
> convention...do you know how i mean it?
>
> For my work I would use it for a slider at the main page, where I want to
> put a picuter in it, and link to products, categories, content etc.
>
> Kindly
>
>
>
>
> Deepak Agarwal-2 wrote
> >
> > Hi Robert,
> >
> > Could you please explain your understanding with this and also about
> > factoids.
> >
> > On Tue, Jul 10, 2012 at 4:03 PM, Robert G. &lt;gan@&gt; wrote:
> >
> >> Ah you mean I shall do it with Content screens ... just like "factoids"
> >> or
> >> sth...right?
> >>
> >> good idea!
> >>
> >> --
> >> View this message in context:
> >>
> http://ofbiz.135035.n4.nabble.com/Best-practices-to-show-banners-tp4632580p4634653.html
> >> Sent from the OFBiz - User mailing list archive at Nabble.com.
> >>
> >> --
> >> Thanks,
> >> Deepak Agarwal,
> >>
> >> Paxcel Technologies Pvt Ltd.
> >> Hartron Complex, Sector 18, Gurgaon, India.
> >> E-Mail: deepak.agarwal@
> >> Mobile: +91 9910322604
> >>
> >>
> >
>
>
>
>
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/Best-practices-to-show-banners-tp4632580p4635233.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
> --
> Thanks,
> Deepak Agarwal,
>
> Paxcel Technologies Pvt Ltd.
> Hartron Complex, Sector 18, Gurgaon, India.
> E-Mail: deepak.agarwal@paxcel.net
> Mobile: +91 9910322604
>
>

Re: Best practices to show banners

Posted by "Robert G." <ga...@mercon24.de>.
Hey Deepak,

Factoids is a content box in ecommerce ofbiz, which is allready implemented.
This box is shown in all places in the store at the right or left panel
i.ex. The content is defined in backend CMS, where about 6 contens are
allready defined. The box is now configured (in ftl), that this shows
randomly 2 contents out of the 6 available. The content is as you prefer,
like a banner with anchor, or just text as information...

at the moment it is used for like "did you know?..." and shows some news.

But this is just an example of a content box. with that you can find how to
handle it. Cause it is not in my focus actually, I just looked in the past
how it works - was not difficult, but I allready forgot that :) just follow
the files...

So at this point this box is shown everywere. But it can be interesting to
show it just in specific categories, or to show specific content in it,
depending of the categories, or products and so on.

So you can write functions to show specific content boxes just in specific
situations (specific category etc.)...thats the way I think it can works.
You probably can name the content in CMS like:
cat_content_*hereyourcategoryid
*

than write i.ex. a function, where you search for all contents (which are
not expired) which start wit cat_content_ and than split the name to get the
category id. Than you can display it depending on the id value, so you do
not have to change your code when you want to display it elsewere. With that
you can just use CMS, and tell your employee, that they have to use the name
convention...do you know how i mean it?

For my work I would use it for a slider at the main page, where I want to
put a picuter in it, and link to products, categories, content etc.

Kindly




Deepak Agarwal-2 wrote
> 
> Hi Robert,
> 
> Could you please explain your understanding with this and also about
> factoids.
> 
> On Tue, Jul 10, 2012 at 4:03 PM, Robert G. &lt;gan@&gt; wrote:
> 
>> Ah you mean I shall do it with Content screens ... just like "factoids"
>> or
>> sth...right?
>>
>> good idea!
>>
>> --
>> View this message in context:
>> http://ofbiz.135035.n4.nabble.com/Best-practices-to-show-banners-tp4632580p4634653.html
>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>
>> --
>> Thanks,
>> Deepak Agarwal,
>>
>> Paxcel Technologies Pvt Ltd.
>> Hartron Complex, Sector 18, Gurgaon, India.
>> E-Mail: deepak.agarwal@
>> Mobile: +91 9910322604
>>
>>
> 




--
View this message in context: http://ofbiz.135035.n4.nabble.com/Best-practices-to-show-banners-tp4632580p4635233.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Re: Best practices to show banners

Posted by Deepak Agarwal <da...@gmail.com>.
Hi Robert,

Could you please explain your understanding with this and also about
factoids.

On Tue, Jul 10, 2012 at 4:03 PM, Robert G. <ga...@mercon24.de> wrote:

> Ah you mean I shall do it with Content screens ... just like "factoids" or
> sth...right?
>
> good idea!
>
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/Best-practices-to-show-banners-tp4632580p4634653.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
> --
> Thanks,
> Deepak Agarwal,
>
> Paxcel Technologies Pvt Ltd.
> Hartron Complex, Sector 18, Gurgaon, India.
> E-Mail: deepak.agarwal@paxcel.net
> Mobile: +91 9910322604
>
>

Re: Best practices to show banners

Posted by "Robert G." <ga...@mercon24.de>.
Ah you mean I shall do it with Content screens ... just like "factoids" or
sth...right?

good idea!

--
View this message in context: http://ofbiz.135035.n4.nabble.com/Best-practices-to-show-banners-tp4632580p4634653.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Re: Best practices to show banners

Posted by BJ Freeman <bj...@free-man.net>.
look in specialpurpose\ecommerce\webapp\ecommerce\content for examples 
of screelets.

start with \specialpurpose\ecommerce\webapp\ecommerce\main.ftl or any 
top level screen definition and work down the chain till you get to the 
Screen definition you want to put the screenlet in.

Create a Css class for your Slider to put in your screenlet




Robert G. sent the following on 7/9/2012 10:43 AM:
> I want to archieve a similar thing (content slider on my startpage).
>
> This slider shall include:
> - direct link to a product
> - link to a category
> - link to a content site
>
> To get this, I have to put a link and an image in my backend for each slider
> content. I want f.ex. to do it like explained above (do an extra categorie
> for each slider content)...but for doing this Im wondering what the
> following things are:
>
> - related Url
> - alternative Url
> - video Url
>
> I think, that "alternative Url" is handled like an URL rewrite...that I can
> get to the target Url with the "alternative Url"...but if so, what is the
> related and the video Url?
>
> For the image I can use the category image, but can I use f.ex. the related
> Url to put in there a target Url...this Url I could get from my groovy file
> to forward by click to the wanted content...but I do not want to get to the
> category I added...
>
> do you know what I mean?
>
> Would appreciate a comment.
>
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/Best-practices-to-show-banners-tp4632580p4634625.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>

Re: Best practices to show banners

Posted by Deepak Agarwal <da...@gmail.com>.
While thinking of cms I am thinking in following way:

1) What to show
2) Where to show
3) How to show

*What to show:*
 As I look into ofbiz and bigfish, each has their own way to define it. In
my opinion I have following thoughts:
   a) Content Purpose -> This is to ensure what we are looking for. Lets
say purpose is : BANNER, NEWS, FAQ, WEB_PAGE. So, If I have a menu in my
erp application saying 'Manage Banners' then I will fetch all content whose
purpose is set to 'BANNER'

  Now, what hirerachy I am setting up
        WEBSTORE_CNT (PUBLISH_POINT )
                            |
                            |
               WEB_STATIC_CONTENT
                            |

---------------------------------------------------------------------------
         |                                        |
         |
    BANNER_STATIC                  NEWS                      FAQ
         |
------------------------------------------
|                                         |
BANNER_TYPE_1            BANNER_TYPE_2
 (Attr imgWidth, imgHeight)
         |
----------------------
|                     |
Banner1        Banner2

Here, all my cms related configurational content goes under
WEB_STATIC_CONTENT hirerachy (It is a top most root under my publish point)
All these are my content Ids. Under BANNER_STATIC I have baaner types which
basically sets banner size in them as attribute. So, every banner I add
should go under any of these types (banner_type_1, banner_type_2).

*How to show:*
* *This becomes very specific to as what we are showing. I think writing
macros would be a better choice for this. @renderBanner , @renderNews

*Where to show:*
I am still evaluating as in how to connect my content out of the box to the
layouts. What I really want is that after adding the banner I want user to
choose the places where
          a) This banner is eligible to be shown (based on it's size)
 This brings a question how to define these places.



On Tue, May 28, 2013 at 4:00 AM, Robert G. <ga...@mercon24.de> wrote:

> can you maybe explain it more detailed what you mean? Is it easier with
> that
> to place banner's on ecommerce site?
>
> greetings
>
>
>
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/Best-practices-to-show-banners-tp4632580p4641559.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>



-- 
Thanks,
Deepak Agarwal,

Mobile: +91 9501190044

Re: Best practices to show banners

Posted by "Robert G." <ga...@mercon24.de>.
can you maybe explain it more detailed what you mean? Is it easier with that
to place banner's on ecommerce site?

greetings



--
View this message in context: http://ofbiz.135035.n4.nabble.com/Best-practices-to-show-banners-tp4632580p4641559.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Re: Best practices to show banners

Posted by Deepak Agarwal <da...@gmail.com>.
Is it closer to webisite-pathalias implementation in ofbiz. I found about
pathalias in Content->CMS.

On Mon, Jul 9, 2012 at 11:13 PM, Robert G. <ga...@mercon24.de> wrote:

> I want to archieve a similar thing (content slider on my startpage).
>
> This slider shall include:
> - direct link to a product
> - link to a category
> - link to a content site
>
> To get this, I have to put a link and an image in my backend for each
> slider
> content. I want f.ex. to do it like explained above (do an extra categorie
> for each slider content)...but for doing this Im wondering what the
> following things are:
>
> - related Url
> - alternative Url
> - video Url
>
> I think, that "alternative Url" is handled like an URL rewrite...that I can
> get to the target Url with the "alternative Url"...but if so, what is the
> related and the video Url?
>
> For the image I can use the category image, but can I use f.ex. the related
> Url to put in there a target Url...this Url I could get from my groovy file
> to forward by click to the wanted content...but I do not want to get to the
> category I added...
>
> do you know what I mean?
>
> Would appreciate a comment.
>
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/Best-practices-to-show-banners-tp4632580p4634625.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>



-- 
Thanks,
Deepak Agarwal,

Mobile: +91 9501190044

RE: Best practices to show banners

Posted by "Robert G." <ga...@mercon24.de>.
sorry "f.ex." means "for example"

kindly

--
View this message in context: http://ofbiz.135035.n4.nabble.com/Best-practices-to-show-banners-tp4632580p4634629.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

RE: Best practices to show banners

Posted by Skip <sk...@thedevers.org>.
I have seen "f.ex." used here several times and I hate to admit that I have
no idea what it means.  Can someone fill me in?

-----Original Message-----
From: Robert G. [mailto:gan@mercon24.de]
Sent: Monday, July 09, 2012 10:43 AM
To: user@ofbiz.apache.org
Subject: Re: Best practices to show banners


I want to archieve a similar thing (content slider on my startpage).

This slider shall include:
- direct link to a product
- link to a category
- link to a content site

To get this, I have to put a link and an image in my backend for each slider
content. I want f.ex. to do it like explained above (do an extra categorie
for each slider content)...but for doing this Im wondering what the
following things are:

- related Url
- alternative Url
- video Url

I think, that "alternative Url" is handled like an URL rewrite...that I can
get to the target Url with the "alternative Url"...but if so, what is the
related and the video Url?

For the image I can use the category image, but can I use f.ex. the related
Url to put in there a target Url...this Url I could get from my groovy file
to forward by click to the wanted content...but I do not want to get to the
category I added...

do you know what I mean?

Would appreciate a comment.

--
View this message in context:
http://ofbiz.135035.n4.nabble.com/Best-practices-to-show-banners-tp4632580p4
634625.html
Sent from the OFBiz - User mailing list archive at Nabble.com.