When you create a profile in the admin GUI you are required to create a filter.
Under Filters add a filter type of URI.
I would recommend you name the filter as the same name of the profile.

So your front developers would only have to go to

http://portal-domain.gtd/<profile-name>

To see their changes.
I hope this helps



James Rouzier
jrouz...@inverse.ca :: +1.514.755.3630  ::  http://www.inverse.ca
Inverse inc. :: Leaders behind SOGo (http://www.sogo.nu) and PacketFence 
(http://www.packetfence.org)

On 2015-03-09 5:33 AM, Andy A wrote:
Okay. Thanks for those steps. Really appreciate it.
Just one question, could you explain what do you mean by 'Create a new profile with a the url filter'?


------------------------------------------------------------------------
Date: Fri, 6 Mar 2015 14:29:17 -0500
From: jrouz...@inverse.ca
To: packetfence-devel@lists.sourceforge.net
Subject: Re: [PacketFence-devel] Captive Portal Template Development‏

Andy

We have deep integration with apache.
So unfortunately captive-portal/script/captive_portal_server.pl cannot be ran. You have to install the packetfence in order for your front end developers to see their changes. The good news is any changes made to any template are instantly seen in the portal. So as long you are not changing code you do not have to restart PacketFence every time you make a change to your templates.
I would suggest the following setup.

Install packetfence (there is not real way around it with rewriting some part of packetfence).
Create a new profile with a the url filter.

cd /usr/local/pf/html/captive-portal/profile-templates/<profile-name>
git init .
git add .
git commit -m"Packetfence original templates"

Have your Frontend developer update that directory with their changes.

This is the quickest way to up and running without running through a lot of hoops.
Hope this helps

James Rouzier
jrouz...@inverse.ca  <mailto:jrouz...@inverse.ca>  :: +1.514.755.3630  
::http://www.inverse.ca
Inverse inc. :: Leaders behind SOGo (http://www.sogo.nu) and PacketFence 
(http://www.packetfence.org)
On 2015-03-06 9:25 AM, Andy A wrote:

    Hi.

    I tried running the script
    /captive-portal/script/captive_portal_server.pl and I am getting
    the following error

    Can't locate pf/log.pm in @INC (you may need to install the
    pf::log module) (@INC contains: /usr/local/pf/lib
    /home/anuj/packetfence/html/captive-portal/script/../lib /etc/perl
    /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2
    /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18
    /usr/share/perl/5.18 /usr/local/lib/site_perl .) at
    /home/anuj/packetfence/html/captive-portal/script/../lib/captiveportal.pm
    line 39.

    How do I install this module? or what am I missing?

    ------------------------------------------------------------------------
    From: andthereitg...@hotmail.com <mailto:andthereitg...@hotmail.com>
    To: packetfence-devel@lists.sourceforge.net
    <mailto:packetfence-devel@lists.sourceforge.net>
    Date: Thu, 5 Mar 2015 23:06:02 +0000
    Subject: Re: [PacketFence-devel] Captive Portal Template Development‏

    Thanks James. Yes, you got that right it's just Frontend UI to
    take the HTML and convert them into the perl files in conjunction
    with Template Toolkit.
    What you suggested would work perfectly for production system. My
    main concern is how do we do that in the development machine?
    I can't expect the UI developer to have packetfence installed. Is
    there anyway around that?

    Currently we have checked out the PF git repo from github on the
    UI developers machine but *NOT* installed (and I don't want to
    install PF on his local machine)
    So far, I have tried to run the
    /captive-portal/script/captive_portal_server.pl script would that
    be step to check the result of the theme changes for the UI developer.
    I hope I am making sense.


    ------------------------------------------------------------------------
    Date: Thu, 5 Mar 2015 10:29:55 -0500
    From: jrouz...@inverse.ca <mailto:jrouz...@inverse.ca>
    To: packetfence-devel@lists.sourceforge.net
    <mailto:packetfence-devel@lists.sourceforge.net>
    Subject: Re: [PacketFence-devel] Captive Portal Template Development‏

    Andy so from what I understand this is just frontend gui work.

    Then I would recommenced that you create a profile for each theme
    you want to create.
    Then create a uri profile filter for that theme.

    So now you can create have your front end developer go to the uri.

    https://portal-domain/<theme-name> to see the portal for that theme.

    You would then have your frontend developer modify the templates
    the directory

    html/captive-portal/profile-templates/<theme-name>

    I hope this helps

    James Rouzier
    jrouz...@inverse.ca  <mailto:jrouz...@inverse.ca>  :: +1.514.755.3630  
::http://www.inverse.ca
    Inverse inc. :: Leaders behind SOGo (http://www.sogo.nu) and PacketFence 
(http://www.packetfence.org)

    On 2015-03-04 11:57 PM, Andy A wrote:

        Hello.

        I am not an experienced Perl developer. Could someone offer
        some advice on the kind of development setup for developing
        new template designs.

        I know I need Perl, Template Toolkit, Catalyst and I can make
        changes directly via the PF admin.
        But I would like provide a front end developer some form of
        development setup where they don't have to run PacketFence
        locally and profile design development can be decoupled from
        the PF installation. Our aim is to be able to develop multiple
        captive portal themes and be able to test / deploy them to our
        production PF installation via an external CI (continuous
        integration) process like Jenkins.

        So far, I have tried to run the
        /captive-portal/script/captive_portal_server.pl script as
        mentioned in the README file, but I haven't seen any
        productive results.  So I am basically looking for some advice
        from Inverse guys (or anyone), about what their development
        setup is like for captive portal

        Thanks.


        
------------------------------------------------------------------------------
        Dive into the World of Parallel Programming The Go Parallel Website, 
sponsored
        by Intel and developed in partnership with Slashdot Media, is your hub 
for all
        things parallel software development, from weekly thought leadership 
blogs to
        news, videos, case studies, tutorials and more. Take a look and join the
        conversation now.http://goparallel.sourceforge.net/



        _______________________________________________
        PacketFence-devel mailing list
        PacketFence-devel@lists.sourceforge.net  
<mailto:PacketFence-devel@lists.sourceforge.net>
        https://lists.sourceforge.net/lists/listinfo/packetfence-devel



    
------------------------------------------------------------------------------
    Dive into the World of Parallel Programming The Go Parallel
    Website, sponsored by Intel and developed in partnership with
    Slashdot Media, is your hub for all things parallel software
    development, from weekly thought leadership blogs to news, videos,
    case studies, tutorials and more. Take a look and join the
    conversation now. http://goparallel.sourceforge.net/
    _______________________________________________ PacketFence-devel
    mailing list PacketFence-devel@lists.sourceforge.net
    <mailto:PacketFence-devel@lists.sourceforge.net>
    https://lists.sourceforge.net/lists/listinfo/packetfence-devel

    
------------------------------------------------------------------------------
    Dive into the World of Parallel Programming The Go Parallel
    Website, sponsored by Intel and developed in partnership with
    Slashdot Media, is your hub for all things parallel software
    development, from weekly thought leadership blogs to news, videos,
    case studies, tutorials and more. Take a look and join the
    conversation now. http://goparallel.sourceforge.net/
    _______________________________________________ PacketFence-devel
    mailing list PacketFence-devel@lists.sourceforge.net
    <mailto:PacketFence-devel@lists.sourceforge.net>
    https://lists.sourceforge.net/lists/listinfo/packetfence-devel


    
------------------------------------------------------------------------------
    Dive into the World of Parallel Programming The Go Parallel Website, 
sponsored
    by Intel and developed in partnership with Slashdot Media, is your hub for 
all
    things parallel software development, from weekly thought leadership blogs 
to
    news, videos, case studies, tutorials and more. Take a look and join the
    conversation now.http://goparallel.sourceforge.net/



    _______________________________________________
    PacketFence-devel mailing list
    PacketFence-devel@lists.sourceforge.net  
<mailto:PacketFence-devel@lists.sourceforge.net>
    https://lists.sourceforge.net/lists/listinfo/packetfence-devel



------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ PacketFence-devel mailing list PacketFence-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/packetfence-devel


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/


_______________________________________________
PacketFence-devel mailing list
PacketFence-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-devel

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
PacketFence-devel mailing list
PacketFence-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-devel

Reply via email to