Loading...
 

Snarf 플러그인

위키 플러그인 은 자신을 url 변수에 주어진 URL 위치의 본문 (HTML) 텍스트로 자신을 대체합니다. 이는 Integrator 와 유사합니다

임의의 regex 교체는 regex 와 정규표현식들을 사용하여 이 콘텐츠 상에 실행이 가능하며, 이는 각기 preg_replace 에 대한 첫 번째와 두 번째로 사용되며, <body> 데이터의 꺼낸 바로 뒤가 됩니다.

사용법

이 플러그인을 위키페이지에서 사용하려면 다음 문법을 사용하십시오:

Copy to clipboard
{SNARF(url=>http://www.lojban.org,regex=>;.*(.*).*;, regexres=>$1)}This data is put in a CODE caption.{SNARF}


매개변수: url, regex, regexres

예제

Copy to clipboard
{SNARF (url=>http://www.livejournal.com/users/rlpowell/2418.html, regex=>/.*<!-- Content -->.*?<td>(.*?)<\/td>.*?<\/div>(.*?)<hr.*?<!-- \/Content -->.*/s, regexres=><p>$1</p>$2)}[http://www.livejournal.com/users/rlpowell/2418.html] {SNARF}


다른 곳에 설치된 티키에서 위키 페이지의 컨텐츠를 포함하려면, 다음 문법을 사용할 수 있습니다:

Copy to clipboard
{snarf url="http://my.foo.bar/tiki-index_raw.php?page=ExamplePage" wrap="1" ishtml="1" cache="20"}


혹은 보다 긴 구문을 사용할 수도 있습니다:

Copy to clipboard
{SNARF(url="http://my.foo.bar/tiki-index_raw.php?page=ExamplePage" wrap="1" ishtml="1" cache="20")}{SNARF}


".../tiki-index.php?page=..." 를 입력하지 말고 대신 ".../tiki-index_raw.php?page=..." 를 사용하십시오
이러한 SNARF 구문 종류는 티키 5.x 와 6.0 에서 작용하여 위키 페이지에만 작용합니다 (기사에는 작용하지 않습니다)

매개변수

이름설명버전
urlurlurl
regexPCRE 의거하는 정규 표현식변경될 부분
regexresPCRE 에 의거하는 정규 표현식변경
cache URL이 캐시되는 분의 수 - 지정되지 않은 경우, 기본 사이트 캐시 시간이 사용됨tw >=5.0
ajax문자열문자열만 표기되며 사용자가 클릭하였을 때, snart의 컨텐츠를 ajax로 가져옵니다tw>=6.0

이외 PluginCode 매개변수 전부가 적용됨

관련 페이지들

doc.tiki.org

Get Started

Admin Guide User Guide

Keywords

Keywords serve as "hubs" for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):

Accessibility (WAI and 508)
Accounting
Articles and Submissions
Backlinks
Banners
Batch
BigBlueButton audio/video/chat/screensharing
Blog
Bookmark
Browser Compatibility
Link Cache
Calendar
Category
Chat
Clean URLs
Comments
Communication Center
Compression (gzip)
Contacts (Address Book)
Contact us
Content Templates
Contribution
Cookie
Copyright
Credit
Custom Home and Group Home Page
Date and Time
Debugger Console
Directory of hyperlinks
Documentation link from Tiki to doc.tiki.org (Help System)
Docs
Draw
Dynamic Content
Dynamic Variable
External Authentication
FAQ
Featured links
File Gallery
Forum
Friendship Network (Community)
Gmap Google maps
Groups
Hotword
HTML Page
i18n (Multilingual, l10n)
Image Gallery
Import-Export
Install
Integrator
Interoperability
Inter-User Messages
InterTiki
Kaltura video management
Karma
Live Support
Login
Logs (system & action)
Look and Feel
Mail-in
Map with Mapserver
Menu
Meta Elements
Mobile Tiki and Voice Tiki
Module
MultiTiki
MyTiki
Newsletter
Notepad
Payment
Performance Speed / Load
Permissions
Platform independence (Linux-Apache, Windows/IIS, Mac, BSD)
Polls
Profiles
Profile Manager
Report
Toolbar
Quiz
Rating
Feeds
Score
Search engine optimization
Search
Search and Replace
Security
Semantic links
Shadowbox
Shadow Layers
Share
Shopping cart
Shoutbox
Slideshow
Smiley
Social Networks
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Stats
Surveys
Tags
Task
Tell a Friend, alert + Social Bookmarking
TikiTests
Theme CSS & Smarty
Tiki Manager
Trackers
Transitions
User Administration including registration and banning
User Files
User Menu
Watch
WebDAV
Webmail
Web Services
Wiki History, page rename, etc
Wiki Syntax
Wiki structure (book and table of content)
Workspace
WSOD
WYSIWYCA
WYSIWYG
XMLRPC

Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki