Comments

dublin drupaller’s picture

Assigned: Unassigned » dublin drupaller

yep. was hoping to have a dev version ready for dec. but it's going to slip into jan now. patches welcome if others have time.

dub

varchas’s picture

Version: 6.x-1.x-dev » 6.x-1.2
Status: Active » Needs review
StatusFileSize
new17.48 KB

Here is the patch and it works like charm for me.

kvoltz’s picture

The patch seems to be failing for me. Is anyone else having any luck?

PMatwyuk’s picture

No luck here either

Renegadez’s picture

Is there any word on thiis I just got D7 going and this mod would be off the chain. Thanks

salimai’s picture

StatusFileSize
new17.63 KB

Varchas' patch did not work for me initially, but after a few modifications I was able to get it working. There are two core version listings and one module version listing in front_page.info and only the first core version was modified to 7.x. I manually changed the others and the module worked. Attached is a patch I made (patch from 6.x-1.2) that will hopefully help.

Note that there is no link for Front Page on the D7 config page (that I could find at least), so you will need to access the configuration via site.com/admin/config/front. I don't really know my way around adding such things or I would, but I wanted to share a working version even if it's not perfect. Good luck!

dublin drupaller’s picture

thanks Salimai. Will test this when I get a few minutes and report back up here.

Renegadez’s picture

Thanks I will give it a go also and let you know!!

thoth’s picture

Ready to commit for a 7.x-dev version? Seems like it to me.

Anonymous’s picture

crosses fingers

salimai’s picture

All of the thanks goes to Varchas. Their patch made it work in D7, my update to their patch just made D7 realize it.

Anonymous’s picture

I am having trouble making the patch work... is it because the revision number does not match the module number?

dublin drupaller’s picture

re: drupal 7.x release. willi try and get to this at the weekend.
dub

viplayer’s picture

this question: I have a page-front.tpl.php written for drupal 6.20. How do I make page-front.tpl.php earned at drupal 7 and became the background of the main page?
Do already available module "front page"?

robxu9’s picture

subscribing

Renegadez’s picture

Were is the newest file for the D7 port Please I would like to try it on a test site Thanks

Jiri Volf’s picture

Subscribing

websesame’s picture

subscribing

jjemmett’s picture

viplayer

this question: I have a page-front.tpl.php written for drupal 6.20. How do I make page-front.tpl.php earned at drupal 7 and became the background of the main page?
Do already available module "front page"?

rename it page--front.tpl.php

mattcasey’s picture

+1

varchas’s picture

@salimai

Thanks!

timhilliard’s picture

Version: 6.x-1.2 » 6.x-1.x-dev
Assigned: dublin drupaller » timhilliard

Hi guys just letting you know that I've taken on this project as co-maintainer and am working on the Drupal 7 port as we speak. I'm integrating the patches from above and should hopefully have a dev version up in the next few days :)

Cheers,
Tim

kvoltz’s picture

subscribing

timhilliard’s picture

Hi guys just released drupal 7 dev version of front_page. Once this shows up it would be great if some of you could test this for me so I can get a stable release out the door as soon as possible.

Cheers,
Tim

mattcasey’s picture

Thanks Tim, I tried it but when I select 'full' for Anonymous, it is still planting the output inside of a themed wrapper. Also, there's no administration link - I have to type in manually "admin/config/front"

timhilliard’s picture

Hi mattwad, thanks for the comments. The theming issue was definitely something I was a little unsure about as this has changed from d6 to d7. Could you possibly provide me with some more info about how you use this so I can fix it. A screenshot would be nice if you could. I was a little unsure how this worked previously as I use the module in a different manner.

As far as the link goes it is showing under the Configuration menu for me. Maybe clear your menu cache? Let me know if that fixes it.

Cheers,
Tim

mattcasey’s picture

I've attached screenshots. I also switched to the Bartik theme, in case my theme was doing something funny... I did have a version of front_page which I was trying to convert, but I removed the folder from my modules. Ran update.php, flushed cache, no difference.

mattcasey’s picture

mattcasey’s picture

tim, I moved my site off my XAMPPlite server, it asked me to upgrade the module today and now it works (doh!) - even the Config link :)
It must be something with my local setup, which is not asking me to update, even though I copied everything over from it last night, so you'd think it would want to be updated too...

timhilliard’s picture

Hi mattwad, don't worry it was my fault not yours. I fixed the problem and was waiting for the dev release to build before I was going to respond to this thread. Glad to hear it's working however.

Were you able to test all of the features of the module or just your particular config? I would like it if I could get at least 1 more person to test this module out and then I will release an alpha if there is nothing wrong.

Thanks,
Tim

mattcasey’s picture

OK. Besides anonymous front page, I am also using the breadcrumbs feature. So far everything seems to work great. If there's something specific to look for, I won't mind trying it out.

chaloum’s picture

Version: 7.x-2.x-dev » 6.x-1.x-dev
Issue tags: -Front page

Hi all

Trying to get my head around D7. I've installed the front page module and I'm getting this error

Notice: Undefined index: site_frontpage in front_page_init() (line 97 of /Library/WebServer/Documents/Xxx/sites/all/modules/front/front_page.module).

no Idea what it means can anyone help?

thanks

Marcel

timhilliard’s picture

Version: 6.x-1.x-dev » 7.x-2.x-dev

@chaloum: thanks for the bug report. I've now patched and commited the change. This should show up in the next 12 hours if you are downloading the zip or tarball. If you want to get the change now try using git to check it out.

As a side note since this was still labeled as 6.x-1.x-dev could you just let me know what version you are using or change the version of the post. I'm changing the version now to reflect the changes we are testing.

Thanks,
Tim

chaloum’s picture

Tim

Thanks for your prompt reply. I'm a little new to how thing happen on Drupal. The version of Front page is 7.x-3.x-dev

I'll go over to Git and try and get the latest rev.

regards

Marcel

timhilliard’s picture

@chaloum: I'm assuming you meant 7.x-2.x as this was the version the problem was in and we don't have a 7.x-3.x version :)

chaloum’s picture

I need sleep yes -2x

chaloum’s picture

Tim

Im not sure how to access Drupals Git can you point me in the right direction?

thanks

Marcel

timhilliard’s picture

@chaloum: Have a look at http://drupal.org/node/1010894 which has the instructions on how to install git. You can then get the instructions for downloading 7.x-2.x branch of this project at http://drupal.org/node/16617/git-instructions/7.x-2.x

I hope this helps.

Thanks,
Tim

chaloum’s picture

Tim

I managed to download the fix from GIT which fixed the error but now I have a new error (below)
If a add front_page to activate front page I get the follow error if I'm logged in
Fatal error: Call to undefined function drupal_eval() in /Library/WebServer/Documents/LeoPharma/sites/all/modules/front/front_page.module on line 366

If Im not logged in It tells me Im not authorized to view the page.

thanks

Marcel

timhilliard’s picture

Hi Marcel,

you need to switch to the 7.x-2.x branch. You are currently in the 6.x-1.x branch. Use:

git checkout 7.x-2.x

The tarball and zip files have also updated so you can just use the normal download method to get the files.

Thanks,
Tim

DaveRoberts’s picture

Hi, I've just installed 7.x-2.x-dev on my D7 development site, but I can't find the module's interface anywhere. I guess it should be somewhere in the configuration menu?

timhilliard’s picture

Hi Dave,

You probably need to flush your menu cache. I'll see if I can add that into the install.

Thanks,
Tim

DaveRoberts’s picture

Hi Tim,

I routinely 'clear all caches'. Is there a menu cache somewhere else? I'm still not seeing anything on the configure page.
Cheers, Dave

DaveRoberts’s picture

Hi Tim,

the interface is available at http://localhost/#overlay=admin/config/front but is not appearing on the configuration menu for some reason. At least I can play with it to see if I can get the behaviour I'm looking for for my site.
Cheers, Dave

timhilliard’s picture

Hi Dave,

Which version are you using? That path only exists in the 6.x version now. If you are using a 7.x version can you please make sure you have the latest one as this was a bug that occurred previously.

Thanks,
Tim

chaloum’s picture

Hi Tim

I downloaded the latest zip and installed it and now I get this error

Notice: Undefined index: front_page_admin in drupal_retrieve_form() (line 736 of /Library/WebServer/Documents/LeoPharma/includes/form.inc).
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'front_page_admin' not found or invalid function name in drupal_retrieve_form() (line 771 of /Library/WebServer/Documents/LeoPharma/includes/form.inc).
Notice: Undefined index: front_page_admin in drupal_retrieve_form() (line 736 of /Library/WebServer/Documents/LeoPharma/includes/form.inc).
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'front_page_admin' not found or invalid function name in drupal_retrieve_form() (line 771 of /Library/WebServer/Documents/LeoPharma/includes/form.inc).

aslo when I move from the front page admin I get this error at the top of the page
There is a configuration error. The home page should not be set to the path "front_page". Please change this

and the front page menu item has disappeared, I've cleared the cache but its no longer displaying

Tim on Dave Roberts post the Front page config is only accessible via the link #overlay=admin/config/front and yes I using the current 7x update/module

Thanks

Marcel

timhilliard’s picture

Hi Marcel, I'm looking into the error message. As for the configuration error, for the 2.x version you should change your site front page path to something other than 'front_page'. The module automatically looks after this when you enable it so you don't need to put this in any more. It should be the last fallback version of your front page if someone goes through without catching a role. The admin settings have been moved to the /admin/config/front path now. It should show up under the 'Front Page' section now rather than system settings. There should be three config pages: settings, arrange and home links.

I'll let you know when I know what's going on with the 7.x-2.x version. Can you tell me did you run the update.php script after you updated?

riyasmtpm’s picture

Issue tags: +Front page

Hi, I've just installed 7.x-2.x-dev on my D7 development site, but I can't find the module's interface anywhere. Its not showing any error and it is activated .But there is no option to configure it either in module section nor in admin/config section.Please help me..

chaloum’s picture

riyasmtpm

a work around is to go to admin config and then put the word /front after admin/config in the url

admin/config/front

and the Front page admin panel will display.

hope this helps

Marcel

DaveRoberts’s picture

Hi Tim,

I've installed 7.x-2.x-dev on my Drupal 7 development site. The path I found certainly works. This is the Front Page module and not the Frontpage module that looks very similar and is at 7.x-1.0-alpha3. I assumed you guys had re-named the module.
Cheers, Dave

timhilliard’s picture

Hi Dave,

You're right it does exist, I was confusing myself. That path is the main path and the other config pages sit under that path as local tasks. It seems for some reason the config pages aren't showing for a number of users. I'm looking into it although it is showing for me. I'll let you know when I have more.

This module has been around for about 6 years and hasn't been renamed. The module you were referring to has only just spawned up at the end of last year and has nothing to do with this module :)

Cheers,
Tim

sdrycroft’s picture

StatusFileSize
new6.46 KB

The issue with the "Front page" entry not showing up in the configuration menu can be fixed by changing all instances of "admin/config/front" with "admin/config/system/front". It's probably also a good idea to add a configure entry to your ".info" file.

The attached patch does just that.

timhilliard’s picture

@sdrycroft: Thanks for the patch, I had already figured out the problem and patched it, just waiting for dev release to rebuild using latest commit.

Thanks,
Tim

chaloum’s picture

I'll wait for the next commit.

thanks

Marcel

timhilliard’s picture

Marcel, the next dev release has been built and ready :)

Veracious’s picture

I tried 7.x-2.x-dev and it worked without a hitch. Tim wanted me to comment on this issue but I am not sure what the issue is. It worked great on D7. Great mod, something that should be built in to Drupal.

timhilliard’s picture

Thanks Veracious, just trying to keep a record of who has tested this module. As soon as I've had a couple more test the module and no errors are showing I will release a version of 2.x. It would be nice if I could get some feedback on 1.x as well.

Thanks,
Tim

timhilliard’s picture

Guys just wondering if anyone here who has tested this module is using the home links feature? If not I want to move it to a separate module that is still part of the package. I think this will block me from being able to backport to 6.x easily as it is much harder to implement in d6 and I don't like the way it's done in 6.x-1.x currently. Any comments would be greatly appreciated.

Thanks,
Tim

chaloum’s picture

Tim

I'm not sure what has changed in 7.x-2.x-dev but the link to Front isn't in the Config area. the only way to access it is by adding /front

timhilliard’s picture

@chaloum: not sure I follow, if you are referring to the way you set the site front page to "front_page" in 6.x-1.x then that has been removed as all you need to do now is check the enable front page checkbox found in /admin/config/front/settings. Simply checking this box however does not necessarily mean that the home page will do something other than the default set site front page. This needs to be overridden by selecting something other than skip from the relevant roles listed in the same config page. To re-order the roles so that one role will execute before another in terms of the front page go to the "arrange" tab. Is this what you were looking for?

Thanks,
Tim

chaloum’s picture

Tim
Admin/config/front re admin/config/front/setting isn't any wher to be found. The only to get to is by adding /front to the URL.

I've got front page it's self working, that's not my issue. The issue is that there is no link to the config anywhere.

Also not sure why you keep on referring to 6 as this is about 7x.

riyasmtpm’s picture

hi all,

i have configured module and its working fine now.I have one more requirement hope somebody here could help me out.I need to let my users to set their own home page.ie,My site is displaying jobs based on different cities.So user from a city could choose his city in front page,so that next time he log in no need of sorting.

Please help me.. advnce thnks for your precious time.

timhilliard’s picture

@chaloum: I fixed that problem about 3 commits ago. It should be in the latest dev release. When you replace the files please make sure you flush the cache the path won't show up until you do that.

The front page config links are showing in /admin/config under the "Front Page" section. The first config page is at /admin/config/front

@riysmtpm: I am working on adding in drupal_alter hooks so that a module could hook into this module and add other front page methods. This would then be able to be achieved in another module. It might be worth adding a new feature request in the issue queue for this so we can keep track of it.

riyasmtpm’s picture

is there any way to let my users to choose their own front page(choosing the taxonomy terms they wish on their front page)?????

chaloum’s picture

Tim
Im interested in having the new home page being the root file in the url example:

at the moment the URL reads www.mywebsite.com/home

This isn't particularly useful for the SEO

How do I get the URL for the home page to be www.mywebsite.com

thanks

Marcel

timhilliard’s picture

@chaloum: since seo is the anonymous role it depends on that setting. If you skip that role it will use the standard drupal home page. If you don't skip then you need to use alias rather than redirect. If this doesn't fix it are you using global redirect module? I suspect I will need to write in some code to compensate for global redirect but haven't had that problem reported yet.

chaloum’s picture

Will

sorry about this but there is another issue if I promote content to the front page, well I cant because the front page is the splash page. How do I promote content to the "new" front page?

it would be so much easier if in the module you could choose a page that will be the splash page and for it to redirect to the splash when accessed for the first time each visit.

thanks

Marcel

timhilliard’s picture

Hi Marcel,

The default front page if you don't use the front page module is the path 'node'.

Setting the 'promote content to front' checkbox on a node does not mean that it will push it to the front page. That is simply a flag that gets saved against the node. The default home page at 'node' used that flag to get content needed to populate the page. If you want to do something similar but can't use the 'node' page then try using a view and set to filter out all nodes that aren't promoted.

Marcel that is not really the purpose of this module but to achieve something like that I would suggest setting the Home link path that is found under /admin/config/front/home-links to the page you want users to go to after they have arrived (ie not the splash page). You would then just need to set all the roles to skip and that should be all you have to do.

Hope that helps,
Tim

riyasmtpm’s picture

hi Tim and Marcel

Somebody help me with my requirement pls...I want to allow my users to choose their front page and save the selection with their profile.Next time they log in they have to see only the terms which they are selected before.

Exmple: My site(job portal) having 3 vocabularies

1.City
--New delhi
--Banglore

2.Experience
--1 year
--2year

3.Technology
--PHP
--Java

Here i need logged in users to choose the terms

for example a person from Banglore with one year experience in PHP Will have to choose these terms in his front page.
Pls help as soon as possible and advance thanks for your precious time.

timhilliard’s picture

@riyasmtpm: this is not really what front page does and it's not something that I think should be in the module. This sounds more like something for a custom module.

riyasmtpm’s picture

any way thnx for your replay tim

mattcasey’s picture

@riyasmtpm: could you do it in Rules? I haven't tried it, but maybe you could add a field to the Profile, and when the user logs in, redirect to a new page depending on what the field's value is. The only trick would be getting all your vocabulary into that field, or maybe you could put in the values manually

timhilliard’s picture

Version: 6.x-1.x-dev » 7.x-2.x-dev
Status: Needs review » Closed (fixed)
Issue tags: +Front page

Hi guys, this how now moved to alpha so any new issues should be in their own issue now.

Thanks for testing guys,

Cheers,
Tim

XaRz’s picture

Hello folks,

I'm using frontpage-7.x-2.0-rc1 and I can't link the frontpage html content to drupal site. What path I must put in link to get the drupal web showing after my frontpage? I'm using the "full" option.

PS:Perhaps a newbie question...but I can't get it work :(

regards,

XaRz’s picture

Solved.

I've used home links redirection and voilà: I've my front and linking to content correctly. Say it if someone need more info about this.

ty.