Panels Varient Page Title allows you to set your page title directly from Panels Variant configuration, and also allows you to take advantage from Panels Arguments and Contexts as Placeholder tokens.

Sandbox Project URL http://drupal.org/sandbox/abhishek.kukku/1635574
Git Link: http://drupalcode.org/sandbox/abhishek.kukku/1635574.git
Drupal Version 7.x

Comments

DavidS’s picture

Status: Needs review » Needs work

I like the idea of your project!

Why you didn't added this option under the Title field on the Content tab? Mabe it will be more comfortable and user-friendly to have it there instead of new step.

Also make sure your README.txt follows the guidelines for in-project documentation. Your readme may follow the contents of your project page.

Also, maybe you want to delete commented dsm() on line 111

rogical’s picture

StatusFileSize
new3.03 KB
new16.88 KB

Manual review:
--------------------------------

  1. Add git link as well as project url.
  2. Why not integrate with this title setting in panels ?
    dd
  3. Do you consider provide this as a patch to panels than a standalone project?

Auto review with http://ventral.org/pareview
-----------------------------------------------------------
see the result.txt

abhishek.kumar’s picture

Status: Needs work » Needs review

@One Hour Translation: Sure i will look on your suggestion.
@rogical: I will work on the issues reported by you but i am not getting how i can implement this as a patch can you suggest a way to get it.

rogical’s picture

First, your contribution is a nice work, but as panels already have title settings, I think it should be better to enhance it while not let users to install another module for this, Do you think so? For better User experience.

Second, I think we can alter form 'panels_edit_display_settings_form' to do this, I suggest you can create an feature issue in panles and users would join testing.

$form['display_title']['title'] = array(
      '#type' => 'textfield',
      '#default_value' => $display->title,
      '#title' => t('Title'),
      '#description' => t('The title of this panel. If left blank, a default title may be used. Set to No Title if you want the title to actually be blank.'),
      '#process' => array('ctools_dependent_process'),
      '#dependency' => array('edit-display-title-hide-title' => array(PANELS_TITLE_FIXED)),
      '#maxlength' => 255,
    );

Third, there's many other topics can be done to module, if you still want to contribute, there're lots of chance.

BTW, you can get patching guides on every project version control tab: http://drupal.org/project/panels/git-instructions

fotuzlab’s picture

I support a separate module for a reason that it is not the functionality that everyone would want. In case, it draws too many users, it can be incorporated in panels later. But for now a separate module is what I'll go for.

@abhishek, there are a few minor issues I found.

1. master branch has .info file. It should not have any file other than the README.txt
2. Replace "Implement hook_" in comments by "Implements hook_"
3. On line 61 panel_variant_page_title, description is commented. Either un-comment it or remove it.

Also, I agree with rogical that hook_form_alter can be used here. It would be cleaner implementation IMHO.

fotuzlab’s picture

Status: Needs review » Needs work

Also there are formatting issues pending as attached in #2

Marking the issue to "Needs work"

patrickd’s picture

Status: Needs work » Needs review

formatting issues are not major - don't block further reviews

abhishek.kumar’s picture

@rogical @fotuzlab :
It's easily manageable by using hook_page_manager_variant_operations_alter and deal with the ctools conf object as well as i have not putted it at below the title because i am planing to provide the text area so that user can also use php code to set the varient page title.

abhishek.kumar’s picture

@fituzlab i have fixed the issues you have reported in point 1,2 and 3.

abhishek.kumar’s picture

Issue summary: View changes

Added details description.

fotuzlab’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me.
Changing the status to RTBC.

Here are some Tips for a great project page.

patrickd’s picture

Status: Reviewed & tested by the community » Needs work

Your project page is not very detailed, please have a look at the tips for a great project page, you may also use HTML-tags for better structure. Also make sure your README.txt follows the guidelines for in-project documentation.

There is still a master branch, make sure to set the correct default branch: http://drupal.org/node/1659588
Remove master branch:

git checkout 7.x-1.x
git branch -D master
git push origin :master

Remove "version" and "project" from the info file, it will be added by drupal.org packaging automatically. Also you set "core" twice, remove that.

An automated review of your project has still found some issues with your code; As coding standards make sure projects are coded in a consistent style we please you to have a look at the report and try to fix them. Anyway, note that issues found are possibly false positives and fixing all issues is not a requirement for getting through the application process.
http://ventral.org/pareview/httpgitdrupalorgsandboxabhishekkukku1635574git

t('@identifier: @title'...
There's nothing to translate in this string, use format_string() instead.

Some more inline documentation wouldn't be bad, help other developers to understand your code without the need to understand every line of code.

Unfortunately project is too short to approve you as git vetted user. We are currently discussing how much code we need, but everything with less than 120 lines of code or less than 5 functions cannot be seriously reviewed (regarding your skills in security and API best practices). However, we can promote this single project manually to a full project.

abhishek.kumar’s picture

Status: Needs work » Needs review

@patrickd : I have fixed all the issues reported by you.

fotuzlab’s picture

Status: Needs review » Reviewed & tested by the community

I can see a few warnings at http://ventral.org/pareview/httpgitdrupalorgsandboxabhishekkukku1635574git

Changing the status to RTBC (again :) ).

fotuzlab’s picture

I can see a few warnings at http://ventral.org/pareview/httpgitdrupalorgsandboxabhishekkukku1635574git

Changing the status to RTBC (again :) ).

klausi’s picture

We are currently quite busy with all the project applications and I can only review projects with a review bonus. Please help me reviewing and I'll take a look at your project right away :-)

tim.plunkett’s picture

Status: Reviewed & tested by the community » Fixed

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Added git link