DirectAdmin | custom_domain_items.conf | how to change limit custom items - directadmin

I've custom scripts in directadmin:
nano /usr/local/directadmin/data/admin/custom_domain_items.conf
enter image description here
Sample code:
wooplpetmarket=type=checkbox&string=Install Template WP Pet Market&desc=Automatically install Pet Market for this domain&checked=no
Issue:
I've total 7 custom items codes like above, but in DirectAdmin dashboard display only 5 items. I think there is any limit to display up to max 5 custom items.
I try check configuration it:
nano /usr/local/directadmin/conf/directadmin.conf
but nowhere do i see a similar option to change this limit. Can anybody help?

Related

Role of Table LocalizationResourceByScreen in Acumatica

I am trying to understand the database model for localization/multi language support in Acumatica.
I got most of it but I still don't fully understand the role of the table "LocalizationResourceByScreen"
My guess was : the table is referencing the "localization resources" that are actually used and displayed on a screen (one resource can be shared on several screens), others are not used nor displayed?
anyone can confirm on this?
regards
The purpose of the LocalizationResourceByScreen table is to link records from the LocalizationValue table with particular screens in Acumatica, on which those values are displayed. To be more specific, records from LocalizationResourceByScreen are shown in the Usage Details details popup, which appears when the user clicks on either of 4 View Usage Details buttons on the Translation Dictionaries screen.
For example, let's explore on what screens Extra Usage Price is used:
if you open Usage Details popup from the Default Values grid, there will be 4 records listed in the popup. Also notice Extra Usage Price used in 2 DACs: PX.Objects.CT.ContractDetail and PX.Objects.CT.ContractItem:
if now you open Usage Details popup from the Key-Specific Values grid for the PX.Objects.CT.ContractDetail, there will be only 2 records listed in the popup:
and if now you open Usage Details popup from the Key-Specific Values grid for the PX.Objects.CT.ContractItem, there will be only also only 2 of 4 records listed in the popup:

Acumatica Add Wiki's to Customization

We have added several Wiki Articles to the Acumatica and now trying to add them to Customization Project to be able to setup them on another System. The problem is that when we add Wiki's Page ID( they all are in the HelpRoot_User) it add all the Wiki Pages and Zip's size is becoming 40 MB. When we tried to import that Customization Zip to another System we got`
File exceeds maximum allowed size (25000 KB).
Has anybody done Wiki's export to Customization?
How can I do this?
Here is what we did to include our wiki in a package. The idea here is to create a new wiki and include all articles under the new custom wiki. When selecting in the customization you will select the new custom wiki. In My Example I called this "HelpCustom"
Create a new wiki in CONFIGURATION > DOCUMENT MANAGEMENT > MANAGE > WIKI
We added the wiki to the main horizontal bar in the help section. You can define where your wiki lives by selecting the location in 'Site Map Location'.
Find your article in the location you picked in the site map location and add any articles you need.
In your customization project, under Wikis, click Add (+) and select the Wiki created from step 1.
Now the problem you have is how do you transfer the articles to the new wiki so you don't have to redo them. I did a quick test to move an article that was created in a different wiki and here is what I did.
Find the main wiki record in wikipage that you created in step 1 above.
SELECT *
FROM dbo.WikiPage
WHERE [CompanyID] = 2
AND [Name] = 'HelpCustom';
Use the PageID value from the result above as the WikiID and ParentUID in your articles. If you need the articles nested then you will have to adjust the ParentUID to fit (or leave the value as is depending on the row not being at the root of the wiki article tree). I would assume you only need to change the ParentUID value for the top level articles. Otherwise just update WikiID for all articles that need to move.
Here is the script I executed. I could not tell if I needed to update the [Number] column value or not.
UPDATE dbo.WikiPage
SET [ParentUID] = 'F1BF807E-4B0E-414C-B90B-83944AC66D8C', /*Use PageID from parent*/
[WikiID] = 'F1BF807E-4B0E-414C-B90B-83944AC66D8C' /*Use PageID from main wiki*/
WHERE [CompanyID] = 2
AND [Name] = 'TESTDEV1'; /*article name*/
I had to restart/refresh my site to see the article move to my new wiki.
Hope this gives you some direction.
It sounds like you hit the 25MB limit default value validated by the import popup window.
That validation error is directly related to file upload functionality rather than Wiki. Try setting a larger upload file limit in
Acumatica configuration.
Configuration->Document Management->Configure->File Upload Preferences
The ParentID is the ID of the folder for an article. An article may be a folder also and have subarticles under it. For example:
Form Reference
Stock Items
Non-Stock Items

Search thread using by created and assigned username in Forum section Orchard CMS

Please check the attached images. I want to search the thread using by created username and assigned username. But i am getting the result only when I search using by assigned username. When i use the created username i am not getting the result.
Please help to resolve this issue. It is not happen in an Orchardpros.net site.
How can i do Orchardpros.net - 'My Tickets' concept. This is the one for my requirement.
enter image description here
enter image description here
You need to go to you admin panel then do this:
Settings > Search
Select the index you're working with
Tick the checkbox next to author
Click Save
Either wait a few minutes for the index to update itself or then go to:
Settings > Indexes
Find the index you're working with
Press rebuild
After that it should be included in your search results.

Magento pagination not working in custom module

I have a very complex problem (at least i think so) implementing a custom module in Magento. I have created a module that displays products of a single main category in default catalog. For example,
root catalog
-main category
-cat 1
-cat 2
-sub category 1
-cat 3
So what i need to do is, display all these categories in a drop down list and when you select any one category all its products will be loaded. Seemed pretty strait forward. I added the code to display this sort by category drop down list in my module's list.phtml file. Instead of loading default product collection I loaded the main category and then fetched all its sub category and populated the drop down list. And I fetched the product collection of the selected category from the drop down list. My code is like this:
$baseCategory = Mage::getModel('catalog/category')->load(62);
$_productCollection = $baseCategory->getProductCollection()->addAttributeToSelect('*');
The products are loaded alright but the problem arises with pagination. the code for pagination goes like this:
$this->getToolbarHtml();
I have used the $this->getToolbarHtml(); instead of $this so in pagination also I need to change the object. It's not working due to that I think. The toolbar is shown but regardless of number of products per page selected it always displays all products. Can anyone tell me please how to get the toolbar working with my changed code in list.phtml file?
I've found a different approach to the task i wanted to accomplish. So instead of creating a new module i created a new theme and so just overridden the list.phtml file. There is no need to use the above code anymore. And since i am using the default catalog object the pager is also loaded alright.

Drupal6 - product comparison

Hi
I have not using any shopping cart module, just created a content type (product) and defining several field(attribute) for each product feature.
I want to ask is there any module in Drupal for product comparison or field comparison?
Thanks
No, but there is a way to do it with the Flag module and Views. It will take more work than just turning on a module, but the outcome is the standard product comparison you're looking for. See this article.
The article is no longer online: here the content of the original post.
Ubercart Product Comparison
For me, using Ubercart in Drupal as an e-commerce solution for your website is the way to go. I have been using Ubercart for years now for a number of web design and development projects, and there are a massive amount of contribute modules to beef it up. One feature that I have been keen to work on is a Product Comparison feature, which would allow users to select products and have them display on a page, providing them with a nice and easy layout to easily compare their selected products.
After searching around the web, I found a few articles and posts from people looking for this feature, asking how it could work or if anyone had done it, but couldn’t find anything that said “here it is, this is how it can be done”. So, after a little bit or research and a bit of a play, I have come up with a solution which is not that difficult to achieve and only requires some already existing Drupal modules with just a few tweaks.
Note: This tutorial assumes that you already have a working ecommerce site with Ubercart installed. Best to also try this on a test environment and not a live website.
Step 1. Download Required Modules
Download, install and enable the following modules.
Views (I used 6.x-2.11, I haven’t tested it with any other releases)
Flag (I used 6.x-2.0-beta3, I haven’t tested it with any other releases)
Step 2. Flags configuration – Setting up your “compare”
Once you have enabled the Flags module, go to the flags administration page at /admin/build/flags.
Click the Add link, enter the name of your flag (something like “compare”), and leave the flag type as “node”, and submit.
On the next screen you will need to configure your new flag. Complete the following fields (changing the values if you like). I setup my configuration so only registered users of the website could compare products.
Title – Compare Products
Flag link text – Add to compare
Flagged message - [title] has been added to your compare
Unflag link text – Remove from compare
Unflagged message – [title] has been removed from your compare
Flaggable content – Product
Check “Display login link for anonymous users.” and for anonymous link text add “[login] to add to your compare”
For flag access, check flag and unflag for authenticated users
Under Display options select “Display link on node page” and “JavaScript toggle” as link type
Click submit to save your flag.
With the settings we used, the “flag link text” should now display on your product nodes. Clicking it should make the “flagged message” appear and the link changed to your “unflag link text” using JavaScript.
So what we are doing here is just flagging nodes – it’s actually pretty simple. We are flagging/unflagging them as “compare product”, so you should now be able to (by clicking on the link provided on your products) add and remove products to compare on your website.
Now we have done this, we need to create a page to display our “flagged” products, in which this case is the products we want to compare.
Step 3. Creating out Compare Products Page
Go to the Views Administration page, enabling the Flag module creates a default flag view. You can use this as a reference, or even change this view to what you need, it’s totally up to you. All we need is a view with (at least) the settings explained below.
DEFAULTS
Basic Settings – Use at least the following settings
Title: Product Comparison
Style: Table
Items per page: Unlimited
Access: Authenticated user
Empty text: Full HTML
- You have not yet added any products to compare. Click the “Add to compare” link when viewing a product to add it to this page.
Relationships
Add the following relationship:
Flags: Node flag
- label: compare
- check “Include only flagged content”
- flag: select the flag you created in step 2
- by: current user
Fields – You can put whatever fields here you would like to show up against each product. You must include the Node Title, and ideally you would want to show a thumbnail of the product, its price and description and the unflag link to allow users to remove it from this page. I have the following fields for my compare:
Content Image using an imagecache, linking to product
Node: Title linking to product
Flags: Flag link
- Relationship: select the one you added
Product: Sell Price
Node: Teaser
Filters
Node: Published Yes
AND SAVE
Now add a new page display view and give it a URL, then save. Navigate to your new compare page using the URL you entered. If you haven’t “flagged” any products yet, go do so and once done you should see those products displayed on your Compare Products page!!!
But, there is one slight issue. Because we needed to use Style: Table to get the layout to better suit a compare list, it still doesn’t display it the way we need it too. We want to display each of the products horizontally, with each field label shown on the far left so it is easy to compare our products. To do this we need to retheme the table style for our view.
Step 4. Theme the table output of the view
Under Theme: Information for our view, it displays a list of all the possible templates for the display plugin and for the style plugins. Look for the list titled Style output. This is what we want. It lists the possible templates we can use to change the theming of the style output. The first one it displays is the generic template for the table style output but we don’t want to use this one, because if we do we could effect any other table style view that may be on the site. So best to use the next one across, mine was called views-view-table–flag-compare.tpl.php.
Create a new php file and name the file to the template name you want to use. In my case my file is named views-view-table–flag-compare.tpl.php.
Paste the Drupal 6 code from here http://drupal.org/node/174578 into your template file.
Then place the file in your themes directory – and presto! Your comparison table should be laid out more like a comparison style grid. Below is a screenshot of what my Comparison page looks like after a little bit of extra styling.
Try this module: https://drupal.org/project/comparison
Allows the comparison of the attributes of two or more nodes by generating a table. A checkbox is added to nodes to allow them to be included in the comparison. If two or more nodes are selected a link is added to a page with a comparison table.

Resources