Giter Site home page Giter Site logo

october-portfolio's People

Contributors

arrizalamin avatar mr118 avatar neias avatar oostmeijer avatar sliderweb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

october-portfolio's Issues

Meta Tag Usage

Is there a way to pass on meta tags for each portfolio item?

Category Title

Is it possible to change the title of the category?

I tried this but won't work:

function onEnd()
{
    if ($this['category']) {
        $this->page->title = $this['category']->item->title;
    }
}

How to set portfolio SEO title??

I want to set item.title as <title></title>. I used that code, but it didn't work.

function onEnd()
{
if ($this->item)
$this->page->title = $this->item->title;

}

That doesn't work. Please help.

Update plugin!

Plugin not fully working! If you install it via the backend, there is no "item" component in the list (only Portfolio item):

2016-02-05 01 01 48

I moved the files from the repository in folder "arrizalamin/portfolio", and in the list components appeared "Item", but it does not work, because an error occurs:

2016-02-05 00 58 18

Please help me! Wonderful plugin, but I can not use it

Multiple images

How to show multiples image for the same item or how to show a specific image(ex: the third image)

Wrong validation regex in Tag model

The regex in the validator rule doesn't work with hyphens.
My fix

    public $rules = [
        'name' => 'required|unique:arrizalamin_portfolio_tags|regex:/^[a-z0-9-_]+$/'
    ];

Thanks

Customize code

It is possible to have to different html for the component? I mean, one html for each category.

It is possible to overwrite the defautl html?

Thumbnail bug?

When I use the code below as partial of the component, the plugin works correctly. However, when I try to generate the Thumbnail from the image, using {{ item.images[0].thumb(300, { extension: 'png' }) }} instead of {{ item.images[0].path }}, layout of the page is not loaded, as shown in the images below. You have no idea why this happens?

{% for item in __SELF__.portfolio %}
<div class="project-post {{ item.category.name|lower|replace({' ': '-'}) }}">
  <img src="{{ item.images[0].path }}" alt="{{ item.images[0].title }}">
  <div class="hover-box">
    <a class="link" href="{{ 'project'|page({project_id: item.id, slug: item.title|slug }) }}">Visualizar</a>
  </div>
</div>
{% endfor %}

Using the path attr, the plugins works perfect:

untitled-2

Using the thumbnail, only the code of page is loaded, with no layout:

untitled-3

Javascript error: $(...).tagbox is not a function

Hello. Thank you for the so usable plugin.

I'm using OctoberCMS build 345 and Portfolio plugin v. 1.4.2.
On the create item page there is a javascript error: $(...).tagbox is not a function at /plugins/arrizalamin/portfolio/vendor/owl/tagbox/widget/partials/_widget.htm:26

sc-007

related portfolio by category and tag

hello, i want show related portfolio in single portfolio and limit 3 posts. i try like this;

if singletitle (from main for loop) == relatedtitle (second loop)
==> show div..

but if i change per page count (example 3) nothing show

Correction in readme.md

In the section about /plugins/arrizalamin/portfolio/components/item/default.htm

The text:
<a href="\portfolio\tags\{{ tag.name}}">

Should be replaced with:
<a href="{{ tag.pageUrl }}">

(The actual template is correct, just the documentation isn't)

Show all categories on Portfolio page

I need to get all category names and slugs to show on the Portfolio page, to use in the mixitup filter header.

I've come so far to print out all the categories with some extra code in the Code tab, as follows:

use ArrizalAmin\Portfolio\Models\Category;

function onStart()
{
	$this["av_cat"] = (array)Category::lists('name', 'slug');
}

But now I have a problem, because the page will be multilingual... How to account for the Translate plugin with my solution, or is there another? All other Portfolio components work normally with the Translate.

Thanks for the help.

Can't remove tag

I can replace a tag without any problem, but I don't seem to be able to remove all tags. After saving it simply replaces it with the last tag that was removed.

I'm new to October, am I doing something wrong or is this a bug?

Pagination doesn't work

Thanks for this beautiful plugin. I noticed the pagination feature doesn't work as it does nothing when you click on the pagination links. Any pointers on how to fix this?
Thanks.

Show multiple tag items

Hi,

I would like to print out items filtered with multiple tags:

/portfolio/tag1,tag2/1?

How to achieve that?
Regard,
Darjan

Get tag name in page

Hi!
How can I display the tag name (:selected_tag) on the page, not field URL? Example

image

Sorting position of items

Great plugin first of all!

It would be great though if I could position the items in the order I want, or at least specify an "orderBy" parameter in the component settings. Right now it's sorting in the order the items are in the database.

Setting custom order of the portfolio items

I like the simplicity of your plugin, however I think its missing one pretty essential feature: setting a custom order of the added portfolio items. I. e., the "Brands" plugin (look for it on the OctoberCMS plugin search) lets you set an order for the portfolio items, so you can rearrange them. As far as I could see, your plugin always shows the items in the order they have been added. Or did I just miss the option for custom order (I don't mean sorting the items descending instead of ascending)?

Able to have different layouts for the plugin?

This is a fantastic plugin

But i was wondering I have a htm file in /partials/portfolio/default.htm that has the default look of the portfolio plugin on my homepage. But I want to have the same plugin show up in a different page, but have a different layout, how can i achieve this (i.e. have a file called /partials/portfolio/anotherlayout.htm)

Is this possible and how can this be achieved?

Using a partial

Hi, is there a way to set up a new partial? So I can use a partial instead of a component?

I thought it might be something like this:

{% set items = items.portfolio %}
<div class="item ">
{% for item in items %}
{% if item.images|length > 0 %}
{% set image = item.images.first %}
<a href="{{ item.pageUrl }}">
<img src="{{ image.path }}" alt="{{ image.title }}">
<h3>{{ item.title }}</h3></a>

{% endif %} {% endfor %} </div>

But that does not work.

Do you have any suggestions, please?

Thank you.

Some features

hi, thanks in advance.

Just i have a only suggestions:

  • Add a Latests Items Component with limit property
  • Add a limit property and a way to show all the articles without category in Portfolio component

And thanks so much for your work!!

Unable to rename / delete categories and items of the portfolio.

It is not possible to rename/delete a category.

Here's my solution

In controllers/Categories.php add the code:

use Flash;
use ArrizalAmin\Portfolio\Models\Category;
...........
...........
public function index_onDelete()
    {
        if (($checkedIds = post('checked'))) {
            foreach ($checkedIds as $itemId) {
                if ((!$table = Category::find($itemId)))
                    continue;
                $table->delete();
            }
            Flash::success('Successfully deleted those tables.');
        }else{
            Flash::error('Something just went wrong! :(');
        }
        return $this->listRefresh();
    }

In controllers/categories/_list_toolbar.htm add the code:

<button
        class="btn btn-default oc-icon-trash-o"
        disabled="disabled"
        onclick="$(this).data('request-data', {
            checked: $('.control-list').listWidget('getChecked')
        })"
        data-request="onDelete"
        data-request-confirm="<?= e(trans('backend::lang.relation.delete_confirm')) ?>"
        data-trigger-action="enable"
        data-trigger=".control-list input[type=checkbox]"
        data-trigger-condition="checked"
        data-request-success="$el.prop('disabled', false)"
        data-stripe-load-indicator>
        <?= e(trans('backend::lang.form.delete')) ?>
    </button>

In controllers/categories/config_list.yaml change showCheckboxes in true:

showCheckboxes: true

For Items similarly.

Site Search Connection

Is it possible to connect this Plugin to the SiteSearch Plugin?

In the Documentation is shown that I should edit this code. But what should I add? And where do I place it?

public function boot()
{
    Event::listen('offline.sitesearch.query', function ($query) {

        // Search your plugin's contents
        $documents = YourCustomDocumentModel::where('title', 'like', "%${query}%")
                                            ->orWhere('content', 'like', "%${query}%")
                                            ->get();

        // Now build a results array
        $results = [];
        foreach ($documents as $document) {
            // Make this result more relevant if the query
            // is found in the result's title
            $relevance = stripos($document->title, $query) !== false ? 2 : 1;

            $results[] = [
                'title'     => $document->title,
                'text'      => $document->content,
                'url'       => '/documents/' . $document->slug,
                'relevance' => $relevance, // higher relevance results in a higher 
                                           // position in the results listing
            ];
        }

        return [
            'provider' => 'Document', // The badge to display for this result
            'results'  => $results,
        ];
    });
}

Cannot install on a fresh october installation with SQLite

Hello,

Just installed october CMS and chose SQLite as database system.

When I try to install Portfolio module in that install of october, I get the following error in a popup :

Update failed

"SQLSTATE[HY000]: General error: 1 Cannot add a NOT NULL column with default value NULL (SQL: alter > table "arrizalamin_portfolio_items" add column "slug" varchar not null)" on line 662 of /vendor/laravel/framework/src/Illuminate/Database/Connection.php

Tried to install it in a MySQL install of october CMS, no problems at all, so it seems to be related with SQLite.

Alex

Plugin isn't recognised on the backend

I've added the plugin to my project account via the OctoberCMS website. When I check the backend for system updates, the plugin is listed as a 'New Plugin' in the 'Software Update' modal. When I 'Update Software' the plugin downloads and the backend notifies me that the update was successful but it isn't listed as one of the installed plugins. When I check for system updates again, the plugin is still listed as a 'New Plugin' that needs installing.

The plugin has downloaded, I can see it in the plugins directory but it seems that the backend doesn't recognise it.

Page Title

Is it possible to make the page Title the active item?

Something like this?

function onEnd()
{
    if ($this['item'])
        $this->page->title = $this['item']->title;
}

Installation on SQLite-based OctoberCMS

Update failed when using a SQLite based OctoberCMS:
"SQLSTATE[HY000]: General error: 1 Cannot add a NOT NULL column with default value NULL (SQL: alter table "arrizalamin_portfolio_items" add column "slug" varchar not null)" on line 664 of C:\Users\maxva\PhpstormProjects\OntwerpEnAdviesbureauVanHout\vendor\laravel\framework\src\Illuminate\Database\Connection.php

Get by category

Great plugin!

Is it possible to list by category like how the tags work?

So instead of the component with a category selected, is is possible to have that blank and the url /portfolio/category/catname and fetch all the items that are marked with that category?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.